[Crash Fix] Fix Possible Crash in HateList::Find (#4027)

# Notes
- We were not doing any pointer validation, so we were causing crashes in some cases.
- Example: http://spire.akkadius.com/dev/release/22.43.2?id=19163
This commit is contained in:
Alex King
2024-01-28 03:44:04 -05:00
committed by GitHub
parent 5b43bf4a5e
commit 9ee16f8bf7
2 changed files with 11 additions and 8 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ public:
protected:
struct_HateList *Find(Mob *ent);
struct_HateList* Find(Mob* m);
private:
std::list<struct_HateList *> list;
Mob *hate_owner;