diff options
author | megamage <none@none> | 2009-08-06 11:32:56 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-08-06 11:32:56 -0500 |
commit | e1cfdaedcf26546c7732d1de4e30da3d519e4fd8 (patch) | |
tree | d92ecbcd42c5504fd5b522e8df60b15952f57b87 /src | |
parent | 7dd131a293cd80177257f2ec3c0c1ed49d00202f (diff) |
*Remove the assert(false) in StopCastingCharm() because i am not able to fix it for now.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Player.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index a49d6ac6d77..af45bbc6eb3 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -16933,8 +16933,13 @@ void Player::StopCastingCharm() if(GetCharmGUID()) { sLog.outCrash("Player %s (GUID: " UI64FMTD " is not able to uncharm unit (GUID: " UI64FMTD " Entry: %u, Type: %u)", GetName(), GetGUID(), GetCharmGUID(), charm->GetEntry(), charm->GetTypeId()); - sLog.outCrash("Charmed unit has charmer guid " UI64FMTD, charm->GetCharmerGUID()); - assert(false); + if(charm->GetCharmerGUID()) + { + sLog.outCrash("Charmed unit has charmer guid " UI64FMTD, charm->GetCharmerGUID()); + assert(false); + } + else + SetCharm(charm, false); } } |