aboutsummaryrefslogtreecommitdiff
path: root/src/game/Level1.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Level1.cpp')
-rw-r--r--src/game/Level1.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Level1.cpp b/src/game/Level1.cpp
index d84cb06352a..436ea362532 100644
--- a/src/game/Level1.cpp
+++ b/src/game/Level1.cpp
@@ -1464,7 +1464,7 @@ bool ChatHandler::HandleModifyTalentCommand (const char* args)
target->ToPlayer()->SendTalentsInfoData(false);
return true;
}
- else if(((Creature*)target)->isPet())
+ else if(target->ToCreature()->isPet())
{
Unit *owner = target->GetOwner();
if(owner && owner->GetTypeId() == TYPEID_PLAYER && ((Pet *)target)->IsPermanentPetFor(owner->ToPlayer()))