Core/Auras: Fixed possible crash in charms

This commit is contained in:
Shauren
2011-05-12 10:38:40 +02:00
parent 5a57b2e7e6
commit 8e35ee612e
+1 -1
View File
@@ -15745,7 +15745,7 @@ void Unit::RemoveCharmedBy(Unit *charmer)
CharmType type;
if (HasUnitState(UNIT_STAT_POSSESSED))
type = CHARM_TYPE_POSSESS;
else if (charmer->IsOnVehicle(this))
else if (charmer && charmer->IsOnVehicle(this))
type = CHARM_TYPE_VEHICLE;
else
type = CHARM_TYPE_CHARM;