aboutsummaryrefslogtreecommitdiff
path: root/src/game/Level3.cpp
diff options
context:
space:
mode:
authorraczman <none@none>2010-03-07 18:30:53 +0100
committerraczman <none@none>2010-03-07 18:30:53 +0100
commit07f3b914260374792fe8b40d590cb24067c87125 (patch)
tree7c1604160d6aeda8d8b10cf47effa6f075cfa50b /src/game/Level3.cpp
parent9a8f10fa3067ca65c2e69ac610d8950c3b384125 (diff)
Some Creature* casts moved to new ToCreature.
Added const Creature* ToCreature() --HG-- branch : trunk
Diffstat (limited to 'src/game/Level3.cpp')
-rw-r--r--src/game/Level3.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Level3.cpp b/src/game/Level3.cpp
index 71d789f1d80..c4dab15fa57 100644
--- a/src/game/Level3.cpp
+++ b/src/game/Level3.cpp
@@ -4544,7 +4544,7 @@ bool ChatHandler::HandleNpcChangeEntryCommand(const char *args)
SetSentErrorMessage(true);
return false;
}
- Creature* creature = (Creature*)unit;
+ Creature* creature = unit->ToCreature();
if(creature->UpdateEntry(newEntryNum))
SendSysMessage(LANG_DONE);
else
@@ -6182,7 +6182,7 @@ bool ChatHandler::HandleRespawnCommand(const char* /*args*/)
}
if(target->isDead())
- ((Creature*)target)->Respawn();
+ target->ToCreature()->Respawn();
return true;
}