Thalassicus
Bytes and Nibblers
I have two variables, city and buildingID. I print the city name and building ID, then call city:SetNumRealBuilding(buildingID, 1) with this code:
This is the output:
No temple appears in London... how the heck is this possible? 
PHP:
logger:Error("CheckFreeBuildings %10s best %10s building: %20s", city:GetName(), row.FlavorType, (buildingID == -1) and "None Available" or GameInfo.Buildings[buildingID].Type)
if buildingID ~= -1 then
city:SetNumRealBuilding(buildingID, 1)
logger:Error("Awarded Building")
end
Code:
ERROR CheckFreeBuildings London best FLAVOR_CULTURE building: BUILDING_TEMPLE
ERROR Awarded Building
