From 0981b49e9905f07ec52348b129b9d2687fdc1173 Mon Sep 17 00:00:00 2001 From: Tulio Leao Date: Thu, 1 Oct 2020 23:19:34 -0300 Subject: [PATCH] Fix #8957: Error title missing when building w/ insufficient funds (#13020) --- distribution/changelog.txt | 1 + src/openrct2/actions/GameAction.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 9e0a3d030e..812c3f5ee1 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -4,6 +4,7 @@ - Feature: [#13000] objective_options command for console. - Fix: [#3200] Close Construction window upon selecting vehicle page. - Fix: [#8015] RCT2 files are not found when put into the OpenRCT2 folder. +- Fix: [#8957] Error title missing when building with insufficient funds - Fix: [#13021] Mowed grass and weeds don't show up in extra zoom levels. - Fix: [#13029] Not all Junior Roller Coaster pieces are shown when "Show all track pieces" cheat is enabled. - Fix: [#13044] Rides in RCT1 saves all have "0 customers per hour". diff --git a/src/openrct2/actions/GameAction.cpp b/src/openrct2/actions/GameAction.cpp index 2b0bc1e174..3945c64091 100644 --- a/src/openrct2/actions/GameAction.cpp +++ b/src/openrct2/actions/GameAction.cpp @@ -306,6 +306,7 @@ namespace GameActions if (!finance_check_affordability(result->Cost, action->GetFlags())) { result->Error = GA_ERROR::INSUFFICIENT_FUNDS; + result->ErrorTitle = STR_CANT_DO_THIS; result->ErrorMessage = STR_NOT_ENOUGH_CASH_REQUIRES; Formatter(result->ErrorMessageArgs.data()).Add(result->Cost); }