diff options
Diffstat (limited to 'src/game/Level2.cpp')
-rw-r--r-- | src/game/Level2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Level2.cpp b/src/game/Level2.cpp index 8d37dc74cf8..003a42cc506 100644 --- a/src/game/Level2.cpp +++ b/src/game/Level2.cpp @@ -1746,7 +1746,7 @@ bool ChatHandler::HandleNpcTameCommand(const char* /*args*/) pet->SetUInt32Value(UNIT_FIELD_LEVEL, level - 1); // add to world - pet->GetMap()->Add((Creature*)pet); + pet->GetMap()->Add(pet->ToCreature()); // visual effect for levelup pet->SetUInt32Value(UNIT_FIELD_LEVEL, level); @@ -3957,7 +3957,7 @@ bool ChatHandler::HandleCreatePetCommand(const char* args) pet->InitPetCreateSpells(); pet->SetHealth(pet->GetMaxHealth()); - pet->GetMap()->Add((Creature*)pet); + pet->GetMap()->Add(pet->ToCreature()); // visual effect for levelup pet->SetUInt32Value(UNIT_FIELD_LEVEL,creatureTarget->getLevel()); |