Fix money amount printed on whiteout (#9517)
Some checks are pending
CI / build (push) Waiting to run
CI / docs_validate (push) Waiting to run
CI / allcontributors (push) Waiting to run
Docs / deploy (push) Waiting to run

This commit is contained in:
FosterProgramming 2026-03-14 07:51:08 +01:00 committed by GitHub
parent 9e8272da39
commit eada46a5ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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