aboutsummaryrefslogtreecommitdiff
path: root/src/game/Object.cpp
diff options
context:
space:
mode:
authormaximius <none@none>2009-10-31 16:00:47 -0700
committermaximius <none@none>2009-10-31 16:00:47 -0700
commit743578b81f297734162785fe2e2daa32eb5d8aad (patch)
tree077059ac516c9cbf404ea69aacf39b488e24637d /src/game/Object.cpp
parentf5696bcca519a64c9d2ef3fcc365a52ead99e03b (diff)
*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
Diffstat (limited to 'src/game/Object.cpp')
-rw-r--r--src/game/Object.cpp2
1 files changed, 1 insertions, 1 deletions
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