setaicontroller: use Ids

get rid of duplicated mMoveDestination
This commit is contained in:
AzaezelX 2025-04-15 18:01:18 -05:00
parent 201b7bf695
commit 2fe36a571b
5 changed files with 13 additions and 13 deletions

View file

@ -2259,7 +2259,7 @@ void Player::advanceTime(F32 dt)
}
}
bool Player::setAIController(const char* controller)
bool Player::setAIController(S32 controller)
{
if (Sim::findObject(controller, mAIController))
{
@ -2271,7 +2271,7 @@ bool Player::setAIController(const char* controller)
return false;
}
DefineEngineMethod(Player, setAIController, bool, (const char* controller), , "")
DefineEngineMethod(Player, setAIController, bool, (S32 controller), , "")
{
return object->setAIController(controller);
}