Fix incorrect ending offsets for looping chunks
This commit is contained in:
parent
1979d85f58
commit
b17ecb3f3d
|
@ -9,7 +9,8 @@ using BrMedia;
|
||||||
using BrType;
|
using BrType;
|
||||||
|
|
||||||
struct BrList {
|
struct BrList {
|
||||||
Br brushes[while($ < brlist_toc.offset + brlist_toc.size)];
|
u32 max = get_end(toc, parent.header.name);
|
||||||
|
Br brushes[while($ < max)];
|
||||||
};
|
};
|
||||||
|
|
||||||
// There's one core struct here, but fields are used differently for non-terrain brushes
|
// There's one core struct here, but fields are used differently for non-terrain brushes
|
||||||
|
|
|
@ -9,5 +9,6 @@ struct ObjMapElement {
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ObjMap {
|
struct ObjMap {
|
||||||
ObjMapElement objects[while($ < objmap_toc.offset + objmap_toc.size)];
|
u32 max = get_end(toc, parent.header.name);
|
||||||
|
ObjMapElement objects[while($ < max)];
|
||||||
};
|
};
|
|
@ -9,6 +9,7 @@ namespace ScrModules {
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ChunkData {
|
struct ChunkData {
|
||||||
Name names[while($ < scrmodules_toc.offset + scrmodules_toc.size)];
|
u32 max = get_end(toc, parent.header.name);
|
||||||
|
Name names[while($ < max)];
|
||||||
};
|
};
|
||||||
}
|
}
|
Loading…
Reference in New Issue