Selaa lähdekoodia

additional housing packet fix

Emagi 9 kuukautta sitten
vanhempi
commit
0c159c153b
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. 5 0
      EQ2/source/WorldServer/Housing/HousingPackets.cpp

+ 5 - 0
EQ2/source/WorldServer/Housing/HousingPackets.cpp

@@ -134,6 +134,11 @@ void ClientPacketFunctions::SendBaseHouseWindow(Client* client, HouseZone* hz, P
 		
 	// need this to enable the "enter house" button
 	PacketStruct* packet = configReader.getStruct("WS_UpdateHouseAccessDataMsg", client->GetVersion());
+	
+	if(!packet) {
+		return;
+	}
+
 	if(client->GetCurrentZone()->GetInstanceType() != PERSONAL_HOUSE_INSTANCE
 			&& client->GetCurrentZone()->GetInstanceType() != GUILD_HOUSE_INSTANCE) {
 		if (packet) {