Remove unnecessary clamp in cheats_set_money

This commit is contained in:
Michał Janiszewski committed 2017-02-17 08:32:14 +01:00
1 parent f4d712ce80
commit 31ef90fafb
1 file changed
+1 -2
+1 -2
View File
@@ -235,8 +235,7 @@ static void cheat_no_money(bool enabled)
static void cheat_set_money(money32 amount)
{
money32 money = clamp(INT_MIN, amount, INT_MAX);
gCashEncrypted = ENCRYPT_MONEY(money);
gCashEncrypted = ENCRYPT_MONEY(amount);
window_invalidate_by_class(WC_FINANCES);
window_invalidate_by_class(WC_BOTTOM_TOOLBAR);