Explorar el Código

Crash fix for DoF/classic clients when a player enters zone

Fix #161
Image hace 4 años
padre
commit
fd26b3b71d
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      EQ2/source/WorldServer/zoneserver.cpp

+ 4 - 1
EQ2/source/WorldServer/zoneserver.cpp

@@ -6056,8 +6056,11 @@ void ZoneServer::SendUpdateTitles(Spawn *spawn, Title *suffix, Title *prefix) {
 	for (itr = clients.begin(); itr != clients.end(); itr++) {
 		current_client = *itr;
 
+		if (current_client->GetVersion() <= 546)
+			continue;
+
 		if (!(packet = configReader.getStruct("WS_UpdateTitle", current_client->GetVersion())))
-			break;
+			continue;
 
 		packet->setDataByName("player_id", current_client->GetPlayer()->GetIDWithPlayerSpawn(spawn));
 		packet->setDataByName("player_name", spawn->GetName());