소스 검색

Relocating the setting of spawn structs before we are adding the client to the zone listing

Image 4 년 전
부모
커밋
b86008287e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      EQ2/source/WorldServer/client.cpp

+ 1 - 1
EQ2/source/WorldServer/client.cpp

@@ -8226,13 +8226,13 @@ bool Client::HandleNewLogin(int32 account_id, int32 access_code)
 			}
 			else if (EQOpcodeManager.count(GetOpcodeVersion(version)) > 0 && getConnection()) {
 				getConnection()->SetClientVersion(version);
+				GetCurrentZone()->SetSpawnStructs(this);
 				connected_to_zone = true;
 				client_list.Remove(this); //remove from master client list
 				new_client_login = true;
 				GetCurrentZone()->AddClient(this); //add to zones client list
 				world.RejoinGroup(this);
 				zone_list.AddClientToMap(player->GetName(), this);
-				GetCurrentZone()->SetSpawnStructs(this);
 			}
 			else {
 				LogWrite(WORLD__ERROR, 0, "World", "Incompatible version: %i", version);