flitz
Warlord
- Joined
- Sep 16, 2009
- Messages
- 245
happy new year,
let's start with a bug report
A recent game crashes on me and the reason is the combination of:
In CvUnitAI.cpp : 29292:
When the Loki-owning player has no city left, this check will fail and will crash the game. There should be an additional check for
let's start with a bug report

A recent game crashes on me and the reason is the combination of:
- Require complete kill
- Loki-owner has no cities left
- Loki is still roaming around
In CvUnitAI.cpp : 29292:
Code:
int iDistance = plotDistance(pLoopCity->getX_INLINE(), pLoopCity->getY_INLINE(), kPlayer.getCapitalCity()->getX_INLINE(), kPlayer.getCapitalCity()->getY_INLINE());
iValue /= iDistance;
When the Loki-owning player has no city left, this check will fail and will crash the game. There should be an additional check for
Code:
kplayer.getNumberCities > 0