*Remove assert before the work on summon system is finished. This fix the assert crash.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-03-21 14:04:11 -06:00
parent c1a3f51f04
commit 6a7467f6ae

View File

@@ -11220,8 +11220,10 @@ void Unit::RemoveFromWorld()
RemoveBindSightAuras();
RemoveNotOwnSingleTargetAuras();
// if it has charmer or owner, it must be in someone's controllist and server will crash
assert(!GetCharmerGUID());
assert(!GetOwnerGUID());
/*if(GetCharmerGUID())
sLog.outError("Unit %u has charmer guid when removed from world", GetEntry());
if(GetOwnerGUID());
sLog.outError("Unit %u has owner guid when removed from world", GetEntry());*/
}
WorldObject::RemoveFromWorld();