aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellHandler.cpp
diff options
context:
space:
mode:
authorraczman <none@none>2010-03-10 07:58:11 +0100
committerraczman <none@none>2010-03-10 07:58:11 +0100
commit7fd1789109b1203fcc4c477012abacf4e1ed2b81 (patch)
tree937bcf0ea4084d42f01a1daa043b009077357e5e /src/game/SpellHandler.cpp
parentac270db25165f7b7d2d32262cd794c5690962be4 (diff)
Totem* casts.
--HG-- branch : trunk
Diffstat (limited to 'src/game/SpellHandler.cpp')
-rw-r--r--src/game/SpellHandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/SpellHandler.cpp b/src/game/SpellHandler.cpp
index c3edea12e8a..231d0c4e0b4 100644
--- a/src/game/SpellHandler.cpp
+++ b/src/game/SpellHandler.cpp
@@ -506,7 +506,7 @@ void WorldSession::HandleTotemDestroyed( WorldPacket& recvPacket)
Creature* totem = GetPlayer()->GetMap()->GetCreature(_player->m_SummonSlot[slotId]);
// Don't unsummon sentry totem
if(totem && totem->isTotem() && totem->GetEntry() != SENTRY_TOTEM_ENTRY)
- ((Totem*)totem)->UnSummon();
+ totem->ToTotem()->UnSummon();
}
void WorldSession::HandleSelfResOpcode( WorldPacket & /*recv_data*/ )