CvCityAI.cpp Error

macsbug

Chieftain
Joined
Oct 31, 2005
Messages
75
Line number: 5731
Original code: if ((iHurryPopulation * 3) > (getProductionTurnsLeft * 2))
Should be: if ((iHurryPopulation * 3) > (getProductionTurnsLeft() * 2))

The Visual C++ Toolkit 2003 compiler does not generate an error for the original code above. The above if statement will nearly always fail. I do not know whether this error made its way into the official DLL.
 
Back
Top Bottom