More hatelist fixes. Trying to nail the crash :S

This commit is contained in:
SecretsOTheP
2014-04-22 13:24:07 -04:00
parent dffee38dc6
commit dd1f5f6a11
6 changed files with 9 additions and 11 deletions
+2
View File
@@ -392,6 +392,8 @@ NPC::~NPC()
safe_delete(reface_timer);
safe_delete(swarmInfoPtr);
safe_delete(qGlobals);
//Moved this from ~Mob, because it could cause a crash in some cases where a hate list was still used and that mob was the only one on the hate list.
entity_list.RemoveFromTargets(GetID(), true);
UninitializeBuffSlots();
}