ViterboKnight
King
- Joined
- Feb 6, 2006
- Messages
- 796
file CvPlayer.cs, method pickTriggerUnit
A bug causes this method to always return NULL, therefore never allowing a unit triggered event to be triggered.
Just correct the line
(note: pUnit is declared and never used, its value is always null, while pLoopUnit is actually used to look for every valid trigger unit).
A bug causes this method to always return NULL, therefore never allowing a unit triggered event to be triggered.
Just correct the line
apUnits.push_back(pUnit);
withapUnits.push_back(pLoopUnit);
(note: pUnit is declared and never used, its value is always null, while pLoopUnit is actually used to look for every valid trigger unit).