1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-23 15:52:55 +01:00

Fix #8732 GameActions not working when in negative money.

Related to the simplification to the finance code
This commit is contained in:
duncanspumpkin
2019-02-20 16:10:19 +00:00
parent 971480b305
commit 3467941310

View File

@@ -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)