]> Kevux Git Server - fll/commitdiff
Bugfix: FSS Extended List did not actually record parent path, prevented nests from...
authorKevin Day <thekevinday@gmail.com>
Sat, 31 Oct 2020 01:25:41 +0000 (20:25 -0500)
committerKevin Day <thekevinday@gmail.com>
Sat, 31 Oct 2020 01:25:41 +0000 (20:25 -0500)
It seems that I completely forgot to actually save the parent location.
Without this there is no way to map one nested item to its parent.

level_1/fl_fss/c/fss_extended_list.c

index 67437848f3f2334f4c3d11c1798f879f052f363b..fd3c93d017be29e23ab434a176ebcd5aafc435ec 100644 (file)
@@ -660,8 +660,10 @@ extern "C" {
             if (F_status_is_error(status)) break;
           }
 
-          // only assign object positions for nested objects.
-          if (depth > 0) {
+          if (depth) {
+            found->depth[depth].array[position].parent = found->depth[depth - 1].used;
+
+            // only assign object positions for nested objects.
             found->depth[depth].array[position].object.start = objects.array[depth].start;
             found->depth[depth].array[position].object.stop = objects.array[depth].stop;
           }