aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegamage <none@none>2009-01-18 15:04:27 -0600
committermegamage <none@none>2009-01-18 15:04:27 -0600
commit7fe257a073daa08a1edd54806bc0b835ab273397 (patch)
treeb5f31b0cd4dc65fe3f11e7d3dc310ab92594458e
parent9a2abe9000980aba9c9b8c4a4fee8eb10c032b1b (diff)
*Fix a bug that cause crash when player login.
--HG-- branch : trunk
-rw-r--r--src/game/Unit.cpp9
1 files changed, 6 insertions, 3 deletions
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 )