mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-19 17:38:26 +00:00
Added a few checks to resolve dangling pointers involving Mercs. Similar to the AIYellForHelp crash fixed years ago by Rogean.
This commit is contained in:
@@ -2760,6 +2760,8 @@ void EntityList::RemoveEntity(uint16 id)
|
||||
return;
|
||||
else if(entity_list.RemoveTrap(id))
|
||||
return;
|
||||
else if(entity_list.RemoveMerc(id))
|
||||
return;
|
||||
|
||||
#ifdef BOTS
|
||||
// This block of code is necessary to clean up bot objects
|
||||
|
||||
Reference in New Issue
Block a user