fix(Core/Vehicle): fix crash when using MC on a player riding a vehicle (#24551)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
This commit is contained in:
parent
0df7baabdc
commit
e216838d54
3 changed files with 8 additions and 1 deletions
|
|
@ -18618,7 +18618,7 @@ bool Unit::SetCharmedBy(Unit* charmer, CharmType type, AuraApplication const* au
|
|||
ASSERT(type != CHARM_TYPE_POSSESS || charmer->IsPlayer());
|
||||
if (type == CHARM_TYPE_VEHICLE && !IsVehicle()) // pussywizard
|
||||
throw 1;
|
||||
ASSERT((type == CHARM_TYPE_VEHICLE) == IsVehicle());
|
||||
ASSERT((type == CHARM_TYPE_VEHICLE) == (GetVehicleKit() && GetVehicleKit()->IsControllableVehicle()));
|
||||
|
||||
LOG_DEBUG("entities.unit", "SetCharmedBy: charmer {} ({}), charmed {} ({}), type {}.",
|
||||
charmer->GetEntry(), charmer->GetGUID().ToString(), GetEntry(), GetGUID().ToString(), uint32(type));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue