From 743578b81f297734162785fe2e2daa32eb5d8aad Mon Sep 17 00:00:00 2001 From: maximius Date: Sat, 31 Oct 2009 16:00:47 -0700 Subject: *Reinit the iterator in each loop as the iter is removed from the list, in AuctionHouseObject::Update, by Trazom *No longer disregard z/o in Map::CreatureRelocation, thanks Sisif *Cleanup, and make Divine Storm default to m_caster is no unitTarget is available *Some mtmaps optimization --HG-- branch : trunk --- src/game/Object.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/Object.cpp') diff --git a/src/game/Object.cpp b/src/game/Object.cpp index 132d1c3e03b..0a571d67dc0 100644 --- a/src/game/Object.cpp +++ b/src/game/Object.cpp @@ -1468,7 +1468,7 @@ void WorldObject::SendPlaySound(uint32 Sound, bool OnlySelf) { WorldPacket data(SMSG_PLAY_SOUND, 4); data << Sound; - if (OnlySelf && GetTypeId() == TYPEID_PLAYER ) + if (OnlySelf && GetTypeId() == TYPEID_PLAYER) ((Player*)this)->GetSession()->SendPacket( &data ); else SendMessageToSet( &data, true ); // ToSelf ignored in this case -- cgit v1.2.3