aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-26 19:40:17 -0500
committermegamage <none@none>2009-08-26 19:40:17 -0500
commitef093eb9f08e0d9f3f030d5fe20a67ca9a2dd651 (patch)
tree8af36691e1330698f0983b90e214b7057032fb6e /src
parenta4978bb90a48547f7a2681d5626d7a01e3fb8f23 (diff)
*Add an assert.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Unit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 5fb41cf147c..d505cdab965 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -14084,7 +14084,7 @@ bool Unit::SetCharmedBy(Unit* charmer, CharmType type)
return false;
assert(type != CHARM_TYPE_POSSESS || charmer->GetTypeId() == TYPEID_PLAYER);
- assert(type != CHARM_TYPE_VEHICLE || GetTypeId() == TYPEID_UNIT && IsVehicle());
+ assert((type == CHARM_TYPE_VEHICLE) == IsVehicle());
sLog.outDebug("SetCharmedBy: charmer %u, charmed %u, type %u.", charmer->GetEntry(), GetEntry(), (uint32)type);