Fix for zone crashes on startup

This commit is contained in:
Uleat 2018-03-09 23:41:27 -05:00
parent 341bc0723b
commit 89303d9218

View File

@ -1817,7 +1817,8 @@ void WorldServer::HandleMessage(uint16 opcode, const EQ::Net::Packet &p)
case ServerOP_UCSServerStatusReply: case ServerOP_UCSServerStatusReply:
{ {
auto ucsss = (UCSServerStatus_Struct*)pack->pBuffer; auto ucsss = (UCSServerStatus_Struct*)pack->pBuffer;
zone->SetUCSServerAvailable((ucsss->available != 0), ucsss->timestamp); if (zone)
zone->SetUCSServerAvailable((ucsss->available != 0), ucsss->timestamp);
break; break;
} }
case ServerOP_CZSetEntityVariableByNPCTypeID: case ServerOP_CZSetEntityVariableByNPCTypeID: