[Crash] Fix Aura process crash with bots (#4743)

This commit is contained in:
Chris Miles 2025-03-03 00:13:00 -06:00 committed by GitHub
parent 3902230fa1
commit c5715f1f14
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View File

@ -708,6 +708,9 @@ Client::Client(EQStreamInterface *ieqs) : Mob(
}
Client::~Client() {
entity_list.RemoveMobFromCloseLists(this);
m_close_mobs.clear();
if (ClientVersion() == EQ::versions::ClientVersion::RoF2 && RuleB (Parcel, EnableParcelMerchants)) {
DoParcelCancel();
}

View File

@ -531,6 +531,9 @@ Mob::Mob(
Mob::~Mob()
{
entity_list.RemoveMobFromCloseLists(this);
m_close_mobs.clear();
quest_manager.stopalltimers(this);
mMovementManager->RemoveMob(this);
@ -570,11 +573,8 @@ Mob::~Mob()
entity_list.UnMarkNPC(GetID());
UninitializeBuffSlots();
entity_list.RemoveMobFromCloseLists(this);
entity_list.RemoveAuraFromMobs(this);
m_close_mobs.clear();
ClearDataBucketCache();
LeaveHealRotationTargetPool();