mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-02 20:56:37 +00:00
[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:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user