From d87133961a740ebc43fd5fa5fae69d161240b7cc Mon Sep 17 00:00:00 2001 From: megamage Date: Sat, 27 Jun 2009 18:56:47 -0500 Subject: *Add some error log for debug. --HG-- branch : trunk --- src/game/Unit.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/game/Unit.cpp') diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index fa748673eac..93107ecf55f 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -14107,7 +14107,12 @@ void Unit::RemoveCharmedBy(Unit *charmer) if(!charmer) charmer = GetCharmer(); else if(charmer != GetCharmer()) // one aura overrides another? + { + sLog.outCrash("Unit::RemoveCharmedBy: this: " UI64FMTD " true charmer: " UI64FMTD " false charmer: " UI64FMTD, + GetGUID(), GetCharmerGUID(), charmer->GetGUID()); + assert(false); return; + } CharmType type; if(hasUnitState(UNIT_STAT_POSSESSED)) -- cgit v1.2.3