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