ViterboKnight
King
- Joined
- Feb 6, 2006
- Messages
- 796
[*] Fixed bug that prevented random events that target a unit from triggering
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
apUnits.push_back(pUnit);with
apUnits.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).
So, ONE line of code of MINE is now in the (un)official patch???
COOL!!!!
