mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 22:01:30 +00:00
Hack fix for zone shutdown crashes involving HateList::GetTop()
This commit is contained in:
parent
34ab3e10f5
commit
cdd624e7a8
@ -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;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user