Browse Source

from practicing: aiplayer onstuck correction

AzaezelX 5 years ago
parent
commit
1619b7cd23
1 changed files with 1 additions and 2 deletions
  1. 1 2
      Engine/source/T3D/aiPlayer.cpp

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

@@ -716,12 +716,11 @@ void AIPlayer::onReachDestination()
  */
 void AIPlayer::onStuck()
 {
+   throwCallback("onMoveStuck");
 #ifdef TORQUE_NAVIGATION_ENABLED
    if(!mPathData.path.isNull())
       repath();
-   else
 #endif
-      throwCallback("onMoveStuck");
 }
 
 #ifdef TORQUE_NAVIGATION_ENABLED