Quellcode durchsuchen

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

Fix #161
Image vor 4 Jahren
Ursprung
Commit
fd26b3b71d
1 geänderte Dateien mit 4 neuen und 1 gelöschten Zeilen
  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());