2
0
Эх сурвалжийг харах

AIPlayer trigger fix as in #1007.

Daniel Buckmaster 10 жил өмнө
parent
commit
04df62ebe5

+ 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
    // Replicate the trigger state into the move so that
    // triggers can be controlled from scripts.
    // 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);
       movePtr->trigger[i] = getImageTriggerState(i);
 
 
    mLastLocation = location;
    mLastLocation = location;