diff options
| author | megamage <none@none> | 2009-01-18 15:04:27 -0600 |
|---|---|---|
| committer | megamage <none@none> | 2009-01-18 15:04:27 -0600 |
| commit | 7fe257a073daa08a1edd54806bc0b835ab273397 (patch) | |
| tree | b5f31b0cd4dc65fe3f11e7d3dc310ab92594458e | |
| parent | 9a2abe9000980aba9c9b8c4a4fee8eb10c032b1b (diff) | |
*Fix a bug that cause crash when player login.
--HG--
branch : trunk
| -rw-r--r-- | src/game/Unit.cpp | 9 |
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 ) |
