moar gaol tracking cleanups

This commit is contained in:
AzaezelX 2025-04-17 12:27:05 -05:00
parent 2956223a60
commit 4f87ad4cf7
4 changed files with 30 additions and 28 deletions

View file

@ -2261,9 +2261,9 @@ void Player::advanceTime(F32 dt)
bool Player::setAIController(SimObjectId controller)
{
if (Sim::findObject(controller, mAIController))
if (Sim::findObject(controller, mAIController) && mAIController->mControllerData)
{
mAIController->setAIInfo(this);
mAIController->setAIInfo(this, mAIController->mControllerData->mMoveTolerance);
return true;
}
Con::errorf("unable to find AIController : %i", controller);