Correctly set final object entries count based on last slot index (#206)

This commit is contained in:
Archez
2024-05-22 09:05:01 -05:00
committed by Garrett Cox
parent edf4fdba8f
commit 0a66c94d48
+4 -2
View File
@@ -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