Hack fix for zone shutdown crashes involving HateList::GetTop()

This commit is contained in:
Uleat 2014-12-23 10:22:03 -05:00
parent 34ab3e10f5
commit cdd624e7a8

View File

@ -279,6 +279,10 @@ int HateList::SummonedPetCount(Mob *hater) {
Mob *HateList::GetTop(Mob *center) Mob *HateList::GetTop(Mob *center)
{ {
// hack fix for zone shutdown crashes on some servers
if (!zone->IsLoaded())
return nullptr;
Mob* top = nullptr; Mob* top = nullptr;
int32 hate = -1; int32 hate = -1;