1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-23 15:52:55 +01:00

Fix #12944. Mistake from refactor meant formatter optimised away (#12961)

Not sure why it should get optimised away but this will fix the crashes.
This commit is contained in:
Duncan
2020-09-18 09:25:17 +01:00
committed by GitHub
parent c72f547606
commit da82144bfb
4 changed files with 8 additions and 4 deletions

View File

@@ -2443,7 +2443,8 @@ void NetworkBase::Client_Handle_GAMESTATE(NetworkConnection& connection, Network
{
log_info("Wrote desync report to '%s'", outputFile.c_str());
auto ft = Formatter().Add<char*>(uniqueFileName);
auto ft = Formatter();
ft.Add<char*>(uniqueFileName);
char str_desync[1024];
format_string(str_desync, sizeof(str_desync), STR_DESYNC_REPORT, ft.Data());