Merge pull request #1017 from eightyeight/aiplayer-triggers-fix

AIPlayer trigger fix
This commit is contained in:
Daniel Buckmaster 2014-12-12 21:45:57 +11:00
commit 9fca02b2f8

View file

@ -438,7 +438,7 @@ bool AIPlayer::getAIMove(Move *movePtr)
// Replicate the trigger state into the move so that
// triggers can be controlled from scripts.
for( S32 i = 0; i < MaxTriggerKeys; i++ )
for( U32 i = 0; i < MaxMountedImages; i++ )
movePtr->trigger[i] = getImageTriggerState(i);
mLastLocation = location;