From ef093eb9f08e0d9f3f030d5fe20a67ca9a2dd651 Mon Sep 17 00:00:00 2001 From: megamage Date: Wed, 26 Aug 2009 19:40:17 -0500 Subject: *Add an assert. --HG-- branch : trunk --- src/game/Unit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game') 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); -- cgit v1.2.3