From 7fe257a073daa08a1edd54806bc0b835ab273397 Mon Sep 17 00:00:00 2001 From: megamage Date: Sun, 18 Jan 2009 15:04:27 -0600 Subject: *Fix a bug that cause crash when player login. --HG-- branch : trunk --- src/game/Unit.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/game/Unit.cpp') diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index ed921d85fa5..607e33d6219 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -258,9 +258,12 @@ Unit::~Unit() if(m_charmInfo) delete m_charmInfo; - sLog.outDetail("Deconstruct Unit Entry = %u", GetEntry()); - if(m_scAuras.size()) - sLog.outError("Unit %u has sc auras during deconstruction", GetEntry()); + if(m_uint32Values) + { + sLog.outDetail("Deconstruct Unit Entry = %u", GetEntry()); + if(m_scAuras.size()) + sLog.outError("Unit %u has sc auras during deconstruction", GetEntry()); + } } void Unit::Update( uint32 p_time ) -- cgit v1.2.3