aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegamage <none@none>2009-03-17 10:30:39 -0600
committermegamage <none@none>2009-03-17 10:30:39 -0600
commitc24e3363876a0fbec2f554d9e3b5bd2370760ff9 (patch)
tree6a5c7ba40b6b16f8048c8be019c8d09738b67cde
parentd6a1516057fdb8261ddee94f97d15a8b4f3de3c7 (diff)
*Remove an assert and use error log instead.
--HG-- branch : trunk
-rw-r--r--src/game/Player.cpp5
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