mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-25 02:27:21 +00:00
Fix crash issue in zone/hate_list.cpp
This commit is contained in:
1 parent
15f217b594
commit
8dd00f5288
2 files changed
+4
-1
No files matched your search
+1
-1
@@ -163,7 +163,7 @@ Mob* HateList::GetClosest(Mob *hater) {
|
||||
++iterator;
|
||||
}
|
||||
|
||||
if (close == 0 && hater->IsNPC() || close->DivineAura())
|
||||
if ((!close && hater->IsNPC()) || (close && close->DivineAura()))
|
||||
close = hater->CastToNPC()->GetHateTop();
|
||||
|
||||
return close;
|
||||
|
||||
Reference in new issue
Block a user