Skip to content

Commit

Permalink
Correctly set final object entries count based on last slot index (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
Archez authored Apr 16, 2024
1 parent d19d863 commit a368075
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mm/2s2h/z_scene_2SH.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,12 @@ void Scene_CommandObjectList(PlayState* play, SOH::ISceneCommand* cmd) {
}

// Continuing from the last index, add the remaining object ids from the command object list
for (; k < objList->objects.size(); k++) {
play->objectCtx.slots[play->objectCtx.numEntries++].id = -objList->objects[k];
for (; k < objList->objects.size(); i++, k++) {
play->objectCtx.slots[i].id = -objList->objects[k];
}

play->objectCtx.numEntries = i;

// #endregion

// Original Compatible Code Commented
Expand Down

0 comments on commit a368075

Please sign in to comment.