mirror of
https://github.com/EQEmu/Server.git
synced 2026-10-11 16:40:32 +00:00
Hack fix for zone shutdown crashes involving HateList::GetTop()
This commit is contained in:
1 parent
34ab3e10f5
commit
cdd624e7a8
1 file changed
+4
@@ -279,6 +279,10 @@ int HateList::SummonedPetCount(Mob *hater) {
|
||||
|
||||
Mob *HateList::GetTop(Mob *center)
|
||||
{
|
||||
// hack fix for zone shutdown crashes on some servers
|
||||
if (!zone->IsLoaded())
|
||||
return nullptr;
|
||||
|
||||
Mob* top = nullptr;
|
||||
int32 hate = -1;
|
||||
|
||||
|
||||
Reference in new issue
Block a user