mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-09 04:16:34 +00:00
NUVIE: Fix Ultima 6 item order in containers when saving
Traverse container content list from the start instead of the end when saving chunks so the items are stored in the correct order.
This commit is contained in:
parent
461ca0cbbf
commit
33d1a4f8b0
@ -382,7 +382,7 @@ bool ObjManager::save_obj(NuvieIO *save_buf, Obj *obj, uint16 parent_objblk_n) {
|
||||
obj_save_count += 1;
|
||||
|
||||
if (obj->container) {
|
||||
for (link = obj->container->end(); link != NULL; link = link->prev)
|
||||
for (link = obj->container->start(); link != NULL; link = link->next)
|
||||
save_obj(save_buf, (Obj *)link->data, objblk_n);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user