Make use of new ToItem() casts

--HG--
branch : trunk
This commit is contained in:
Shauren
2010-08-05 18:43:30 +02:00
parent c94046b065
commit 4773aad26b
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ Object::~Object()
{
sLog.outCrash("Object::~Object - guid="UI64FMTD", typeid=%d, entry=%u deleted but still in world!!", GetGUID(), GetTypeId(), GetEntry());
if (isType(TYPEMASK_ITEM))
sLog.outCrash("Item slot %u", ((Item*)this)->GetSlot());
sLog.outCrash("Item slot %u", this->ToItem()->GetSlot());
ASSERT(false);
RemoveFromWorld();
}