• Our friends from AlphaCentauri2.info are in need of technical assistance. If you have experience with the LAMP stack and some hours to spare, please help them out and post here.

SDK - bug in the CvPlot class

Joined
Feb 6, 2006
Messages
796
I've found a possible bug in the CvPlot.canTrain method.
The code:
Code:
	if (GC.getUnitInfo(eUnit).isPrereqReligion())
	{
		if (NULL == pCity || pCity->getReligionCount() > 0)
		{
			return false;
		}
should probably be
Code:
	if (GC.getUnitInfo(eUnit).isPrereqReligion())
	{
		if (NULL == pCity || pCity->getReligionCount() == 0)
		{
			return false;
		}

The bug has still been undetected, because no unit has a PrereqReligion value of 1 (in the unmodded game), so this code isn't normally executed.
 
Back
Top Bottom