From 07f3b914260374792fe8b40d590cb24067c87125 Mon Sep 17 00:00:00 2001 From: raczman Date: Sun, 7 Mar 2010 18:30:53 +0100 Subject: Some Creature* casts moved to new ToCreature. Added const Creature* ToCreature() --HG-- branch : trunk --- src/game/Pet.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game/Pet.cpp') diff --git a/src/game/Pet.cpp b/src/game/Pet.cpp index 6f04823b4f9..7d3d93c9e79 100644 --- a/src/game/Pet.cpp +++ b/src/game/Pet.cpp @@ -191,7 +191,7 @@ bool Pet::LoadPetFromDB( Player* owner, uint32 petentry, uint32 petnumber, bool CreatureInfo const *cinfo = GetCreatureInfo(); if (cinfo->type == CREATURE_TYPE_CRITTER) { - map->Add((Creature*)this); + map->Add(this->ToCreature()); return true; } @@ -286,7 +286,7 @@ bool Pet::LoadPetFromDB( Player* owner, uint32 petentry, uint32 petnumber, bool } owner->SetMinion(this, true); - map->Add((Creature*)this); + map->Add(this->ToCreature()); m_resetTalentsCost = fields[15].GetUInt32(); m_resetTalentsTime = fields[16].GetUInt64(); -- cgit v1.2.3