mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-26 23:57:17 +00:00
Hack fix for zone shutdown crashes involving HateList::GetTop()
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user