*Fix client crash with barbershop chair

--HG--
branch : trunk
This commit is contained in:
bigjohnson4
2009-07-06 17:03:08 +02:00
parent b46ee65dc0
commit 7d39f4ab22

View File

@@ -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);