[Bug Fix] Fix issue with IsEntOnHateList (#4097)

# Notes
- We were not validating pointer in `IsEntOnHateList()`.
This commit is contained in:
Alex King authored and GitHub committed 2024-02-19 01:52:19 -06:00
1 parent 767846f7e5
commit 6ec63969bb
2 files changed
+5 -7

No files matched your search

+1 -1
View File
@@ -48,7 +48,7 @@ public:
Mob *GetMobWithMostHateOnList(bool skip_mezzed = false);
Mob *GetEscapingMobOnHateList(Mob *center, float range = 0.0f, bool first = false);
bool IsEntOnHateList(Mob *mob);
bool IsEntOnHateList(Mob* m);
bool IsHateListEmpty();
bool RemoveEntFromHateList(Mob *ent);