mirror of
https://github.com/izzy2lost/2ship2harkinian-Android.git
synced 2026-06-19 01:20:08 -07:00
Correctly set final object entries count based on last slot index (#206)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user