1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 05:53:02 +01:00

Explicitly pass formatter arguments to ShowError and family

This commit is contained in:
Matt
2020-08-27 00:01:15 +02:00
parent 2639349925
commit ccde06ab0f
32 changed files with 152 additions and 146 deletions

View File

@@ -72,10 +72,10 @@ static uint16_t _window_error_num_lines;
* bx: title
* dx: message
*/
rct_window* window_error_open(rct_string_id title, rct_string_id message)
rct_window* window_error_open(rct_string_id title, rct_string_id message, const Formatter& args)
{
auto titlez = format_string(title, gCommonFormatArgs);
auto messagez = format_string(message, gCommonFormatArgs);
auto titlez = format_string(title, args.Data());
auto messagez = format_string(message, args.Data());
return window_error_open(titlez, messagez);
}