Browse Source

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

AIPlayer trigger fix
Daniel Buckmaster 10 years ago
parent
commit
9fca02b2f8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Engine/source/T3D/aiPlayer.cpp

+ 1 - 1
Engine/source/T3D/aiPlayer.cpp

@@ -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;