Skip to content

Commit

Permalink
Fix OpenRCT2#8957: Error title missing when building w/ insufficient …
Browse files Browse the repository at this point in the history
…funds
  • Loading branch information
tupaschoal committed Oct 2, 2020
1 parent 2063aea commit 9a7af74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions distribution/changelog.txt
Expand Up @@ -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.
- Improved: [#13023] Made add_news_item console command last argument, assoc, optional.
Expand Down
1 change: 1 addition & 0 deletions src/openrct2/actions/GameAction.cpp
Expand Up @@ -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<uint32_t>(result->Cost);
}
Expand Down

0 comments on commit 9a7af74

Please sign in to comment.