mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-04 13:00:33 +00:00
moar gaol tracking cleanups
This commit is contained in:
parent
2956223a60
commit
4f87ad4cf7
4 changed files with 30 additions and 28 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue