From 3467941310a422bbaf706744c99dbf88cda018ff Mon Sep 17 00:00:00 2001 From: duncanspumpkin Date: Wed, 20 Feb 2019 16:10:19 +0000 Subject: [PATCH] Fix #8732 GameActions not working when in negative money. Related to the simplification to the finance code --- src/openrct2/management/Finance.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/openrct2/management/Finance.cpp b/src/openrct2/management/Finance.cpp index d2c8421a24..225c8692b0 100644 --- a/src/openrct2/management/Finance.cpp +++ b/src/openrct2/management/Finance.cpp @@ -89,6 +89,8 @@ bool finance_check_money_required(uint32_t flags) */ bool finance_check_affordability(money32 cost, uint32_t flags) { + if (cost == 0) + return true; if (finance_check_money_required(flags) == false) return true; if (cost > gCash)