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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user