diff options
| author | Garrett Cox <garrettjcox@gmail.com> | 2022-10-10 03:19:44 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-10 10:19:44 +0200 |
| commit | c00edb928b9c41d7fbda6e58d882e7fd9f07e884 (patch) | |
| tree | 47646536778e83da33852a8f3cd5d254ec90c16f /soh/src/code | |
| parent | b0510d78f81a00e7b88d2110339d8592007c9ed4 (diff) | |
[#1716] Prevent infinite ammo cheat from filling bombchus unless the item is obtained (#1723)
Diffstat (limited to 'soh/src/code')
| -rw-r--r-- | soh/src/code/game.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/soh/src/code/game.c b/soh/src/code/game.c index 9089606e6..712bc6f2a 100644 --- a/soh/src/code/game.c +++ b/soh/src/code/game.c @@ -370,7 +370,7 @@ void GameState_Update(GameState* gameState) { } // Bombchus (max: 50, no upgrades) - if (AMMO(ITEM_BOMBCHU) < 50) { + if (INV_CONTENT(ITEM_BOMBCHU) == ITEM_BOMBCHU && AMMO(ITEM_BOMBCHU) < 50) { AMMO(ITEM_BOMBCHU) = 50; } } |
