summaryrefslogtreecommitdiff
path: root/src/code/z_scene.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/code/z_scene.c')
-rw-r--r--src/code/z_scene.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/code/z_scene.c b/src/code/z_scene.c
index 949e1e41c..3a7121b04 100644
--- a/src/code/z_scene.c
+++ b/src/code/z_scene.c
@@ -312,13 +312,15 @@ void func_8009899C(GlobalContext* globalCtx, SceneCmd* cmd) {
}
}
- if (cmd->objectList.num > OBJECT_EXCHANGE_BANK_MAX)
+ if (cmd->objectList.num > OBJECT_EXCHANGE_BANK_MAX) {
__assert("scene_info->object_bank.num <= OBJECT_EXCHANGE_BANK_MAX", "../z_scene.c", 705);
+ }
while (k < cmd->objectList.num) {
nextPtr = func_800982FC(&globalCtx->objectCtx, i, *objectEntry);
- if (i < OBJECT_EXCHANGE_BANK_MAX - 1)
+ if (i < OBJECT_EXCHANGE_BANK_MAX - 1) {
globalCtx->objectCtx.status[i + 1].segment = nextPtr;
+ }
k++;
objectEntry++;
status++;