mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 01:15:35 +01:00
*Fix client crash with barbershop chair
--HG-- branch : trunk
This commit is contained in:
@@ -1344,7 +1344,8 @@ void GameObject::Use(Unit* user)
|
||||
// fallback, will always work
|
||||
player->TeleportTo(GetMapId(), GetPositionX(), GetPositionY(), GetPositionZ(), GetOrientation(),TELE_TO_NOT_LEAVE_TRANSPORT | TELE_TO_NOT_LEAVE_COMBAT | TELE_TO_NOT_UNSUMMON_PET);
|
||||
|
||||
WorldPacket data(SMSG_ENABLE_BARBER_SHOP, 0);
|
||||
WorldPacket data(SMSG_ENABLE_BARBER_SHOP, 1);
|
||||
data << uint8(0); // unk 3.1
|
||||
player->GetSession()->SendPacket(&data);
|
||||
|
||||
player->SetStandState(UNIT_STAND_STATE_SIT_LOW_CHAIR+info->barberChair.chairheight);
|
||||
|
||||
Reference in New Issue
Block a user