[Fix] Fix zone crash when attempting to add a disappearing client to hate list. (#4782)

This commit is contained in:
zimp-wow
2025-03-19 16:26:54 -05:00
committed by GitHub
parent 9528c1e7fc
commit ef945e6e99
3 changed files with 12 additions and 1 deletions
+4 -1
View File
@@ -131,7 +131,8 @@ Mob::Mob(
m_scan_close_mobs_timer(6000),
m_see_close_mobs_timer(1000),
m_mob_check_moving_timer(1000),
bot_attack_flag_timer(10000)
bot_attack_flag_timer(10000),
m_destroying(false)
{
mMovementManager = &MobMovementManager::Get();
mMovementManager->AddMob(this);
@@ -531,6 +532,8 @@ Mob::Mob(
Mob::~Mob()
{
m_destroying = true;
entity_list.RemoveMobFromCloseLists(this);
m_close_mobs.clear();