To clarify, the error checking is to ensure that the -1 is not later passed to an array (in particular, the array of buildings/units, see getCivilizationBuildings in CvInfos.cpp). If you take the -1 index of an array in C++, it just gives you whatever is before the array in memory, which could...