1
0
Fork 0

Fix #12681: Abstract filetype not set for network client join savegames

pull/12701/head
Jonathan G Rennison 2024-05-19 18:45:29 +01:00
parent 46d7586ab1
commit dde75eb262
1 changed files with 4 additions and 0 deletions

View File

@ -853,6 +853,10 @@ NetworkRecvStatus ClientNetworkGameSocketHandler::Receive_SERVER_MAP_DONE(Packet
/* The map is done downloading, load it */
ClearErrorMessages();
/* Set the abstract filetype. This is read during savegame load. */
_file_to_saveload.SetMode(SLO_LOAD, FT_SAVEGAME, DFT_GAME_FILE);
bool load_success = SafeLoad({}, SLO_LOAD, DFT_GAME_FILE, GM_NORMAL, NO_DIRECTORY, this->savegame);
this->savegame = nullptr;