1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-18 20:43:04 +01:00

Fix #11490. Crash with error message titles (#11502)

Error message titles for rides are composed from the ride name string id and therefore require passing the error message args.
This commit is contained in:
Duncan
2020-04-27 14:22:33 +01:00
committed by GitHub
parent bcabc1d807
commit 3c89d5ec12

View File

@@ -59,7 +59,7 @@ std::string GameActionResult::GetErrorTitle() const
}
else
{
title = format_string(ErrorTitle.GetStringId(), nullptr);
title = format_string(ErrorTitle.GetStringId(), ErrorMessageArgs.data());
}
return title;
}