mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-03-10 19:20:32 +00:00
refactor(Core/Object): adds consistency in the use of type object check (#19671)
This commit is contained in:
@@ -118,7 +118,7 @@ struct npc_pilgrims_bounty_chair : public VehicleAI
|
||||
|
||||
void PassengerBoarded(Unit* who, int8 /*seatId*/, bool apply) override
|
||||
{
|
||||
if (apply && who->GetTypeId() == TYPEID_PLAYER)
|
||||
if (apply && who->IsPlayer())
|
||||
who->ToPlayer()->SetClientControl(me, 0, true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user