From 7d39f4ab22d514a12450ee68d962ef6d510334bc Mon Sep 17 00:00:00 2001 From: bigjohnson4 Date: Mon, 6 Jul 2009 17:03:08 +0200 Subject: [PATCH] *Fix client crash with barbershop chair --HG-- branch : trunk --- src/game/GameObject.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game/GameObject.cpp b/src/game/GameObject.cpp index b690dbccddb..db7e61d53b2 100644 --- a/src/game/GameObject.cpp +++ b/src/game/GameObject.cpp @@ -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);