From 3c89d5ec12e9e4e44689f9cc62527e60570ec790 Mon Sep 17 00:00:00 2001 From: Duncan Date: Mon, 27 Apr 2020 14:22:33 +0100 Subject: [PATCH] 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. --- src/openrct2/actions/GameAction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/actions/GameAction.cpp b/src/openrct2/actions/GameAction.cpp index 04226031a2..05252c4b38 100644 --- a/src/openrct2/actions/GameAction.cpp +++ b/src/openrct2/actions/GameAction.cpp @@ -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; }