carmineos / rage-toolkit

Other
19 stars 6 forks source link

ResourceSimpleList/SimpleList: write correct capacity value #13

Open carmineos opened 3 years ago

carmineos commented 3 years ago

Seems that blocks SimpleList64<T> always have the Capacity field set to 1 when the array is empty.
ResourceSimpleList32_64<T> instead seems to always have an array of Capacity > Count (not exactly equals), infact BVHNodes array has some nodes left to read although they seem to be all zeroes except for a field set at 1 (defualt init of a value type?), should we read (and write back) them too?