From eada46a5ed6197bb4df2a78108fc04208a36ac80 Mon Sep 17 00:00:00 2001 From: FosterProgramming Date: Sat, 14 Mar 2026 07:51:08 +0100 Subject: [PATCH] Fix money amount printed on whiteout (#9517) --- src/battle_script_commands.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/battle_script_commands.c b/src/battle_script_commands.c index 2507f4607f..823df36de1 100644 --- a/src/battle_script_commands.c +++ b/src/battle_script_commands.c @@ -6235,6 +6235,8 @@ static void Cmd_getmoneyreward(void) } money = sWhiteOutBadgeMoney[count] * sPartyLevel; } + if (!IsEnoughMoney(&gSaveBlock1Ptr->money, money)) + money = GetMoney(&gSaveBlock1Ptr->money); RemoveMoney(&gSaveBlock1Ptr->money, money); }