aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellHandler.cpp
diff options
context:
space:
mode:
authorthenecromancer <none@none>2010-03-11 20:51:31 +0100
committerthenecromancer <none@none>2010-03-11 20:51:31 +0100
commite1542df90ccde91e2f7fded2d5378d77b1f9ea84 (patch)
treea2d4cfaa4ede97263b30ce11c8ff1450361de846 /src/game/SpellHandler.cpp
parent02a9cd6a43a18f2350801bd9473c2346b36b0575 (diff)
Convert some C style casts to new functions
--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 231d0c4e0b4..43f68e14794 100644
--- a/src/game/SpellHandler.cpp
+++ b/src/game/SpellHandler.cpp
@@ -582,7 +582,7 @@ void WorldSession::HandleMirrrorImageDataRequest( WorldPacket & recv_data )
data << (uint32)creator->GetDisplayId();
if (creator->GetTypeId() == TYPEID_PLAYER)
{
- Player * pCreator = (Player *)creator;
+ Player * pCreator = creator->ToPlayer();
data << (uint8)pCreator->getRace();
data << (uint8)pCreator->getGender();
data << (uint8)pCreator->getClass();