Browse Source

fix node following stopping early

AzaezelX 5 months ago
parent
commit
a10169accf
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Engine/source/T3D/AI/AINavigation.cpp

+ 3 - 1
Engine/source/T3D/AI/AINavigation.cpp

@@ -170,8 +170,10 @@ void AINavigation::onReachDestination()
    }
    else
 #endif
+   {
       getCtrl()->throwCallback("onReachDestination");
-   getCtrl()->mMovement.mMoveState = AIController::ModeStop;
+      getCtrl()->mMovement.mMoveState = AIController::ModeStop;
+   }
 }
 
 bool AINavigation::setPathDestination(const Point3F& pos)