diff options
author | megamage <none@none> | 2009-03-17 10:30:39 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-03-17 10:30:39 -0600 |
commit | c24e3363876a0fbec2f554d9e3b5bd2370760ff9 (patch) | |
tree | 6a5c7ba40b6b16f8048c8be019c8d09738b67cde | |
parent | d6a1516057fdb8261ddee94f97d15a8b4f3de3c7 (diff) |
*Remove an assert and use error log instead.
--HG--
branch : trunk
-rw-r--r-- | src/game/Player.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 78ac6dc3958..28dc950abcd 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -16332,7 +16332,10 @@ void Player::Uncharm() charm->RemoveSpellsCausingAura(SPELL_AURA_MOD_POSSESS); } - assert(!GetCharmGUID()); + if(GetCharmGUID()) + { + sLog.outError("CRASH ALARM! Player %s is not able to uncharm unit (Entry: %u, Type: %u)", GetName(), charm->GetEntry(), charm->GetTypeId()); + } } void Player::BuildPlayerChat(WorldPacket *data, uint8 msgtype, const std::string& text, uint32 language) const |