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

View File

@ -1,5 +1,8 @@
EQEMu Changelog (Started on Sept 24, 2003 15:50)
-------------------------------------------------------
== 09/02/2014 ==
demonstar55: crash fix checking DivineAura in hate_list.cpp
== 08/31/2014 ==
KLS: Fixed a bug in fishing in S3D zones
KLS: Fixed a bug in turnins with new any abstraction

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;