From 1619b7cd2355c7dea1f63c7a4169a0097b08f7e3 Mon Sep 17 00:00:00 2001 From: AzaezelX Date: Fri, 10 Jul 2020 12:15:46 -0500 Subject: [PATCH] from practicing: aiplayer onstuck correction --- Engine/source/T3D/aiPlayer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Engine/source/T3D/aiPlayer.cpp b/Engine/source/T3D/aiPlayer.cpp index 565bb742c..e5137dec1 100644 --- a/Engine/source/T3D/aiPlayer.cpp +++ b/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