Core/Auras: Fixed possible crash in charms
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user