Fix abstract filetype not being set for network client join savegames

This commit is contained in:
Jonathan G Rennison
2024-05-19 18:44:08 +01:00
parent fc5b3b90b4
commit 5e971bfc02

View File

@@ -1032,6 +1032,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);
std::string error_detail;
bool load_success = SafeLoad({}, SLO_LOAD, DFT_GAME_FILE, GM_NORMAL, NO_DIRECTORY, std::move(this->savegame), &error_detail);
this->savegame = nullptr;