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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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;
}