summaryrefslogtreecommitdiff
path: root/soh/src/code
diff options
context:
space:
mode:
authorMalkierian <malkierian@live.com>2023-03-15 10:25:24 -0700
committerGitHub <noreply@github.com>2023-03-15 13:25:24 -0400
commit7f5f4251cac29fefd1d99fa93c4fbb2921bf55b0 (patch)
tree080d551fc55978b579d1a2620ad8309316482014 /soh/src/code
parentbd07a560221bc079dda965f8564685dfcf47f4d2 (diff)
Another Item_Give bug fixed... (#2636)
Diffstat (limited to 'soh/src/code')
-rw-r--r--soh/src/code/z_parameter.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/soh/src/code/z_parameter.c b/soh/src/code/z_parameter.c
index 6dd479cff..25f19ad36 100644
--- a/soh/src/code/z_parameter.c
+++ b/soh/src/code/z_parameter.c
@@ -2271,6 +2271,7 @@ u8 Item_Give(PlayState* play, u8 item) {
for (i = 0; i < 4; i++) {
if (gSaveContext.inventory.items[temp + i] == ITEM_NONE) {
gSaveContext.inventory.items[temp + i] = item;
+ break;
}
}
}