Fix crash issue in zone/hate_list.cpp

This commit is contained in:
Michael Cook (mackal)
2014-09-02 02:39:03 -04:00
parent 15f217b594
commit 8dd00f5288
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -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;