Better Fix

This commit is contained in:
TheBrokenRail 2024-01-06 05:55:49 -05:00
parent cd82bb2c41
commit c21d34a166

View File

@ -190,9 +190,12 @@ export class Struct {
} else if (i === this.#properties.length) {
// End Of Structure Padding
if (this.#size !== null && lastProperty) {
const realSize = this.#roundSize(lastProperty.propertyOffset() + lastProperty.propertySize());
const realSize = lastProperty.propertyOffset() + lastProperty.propertySize();
const realRoundedSize = this.#roundSize(realSize);
if (realRoundedSize !== this.#size) {
neededPadding = this.#size - realSize;
}
}
} else {
// Inner Structure Padding
if (property && lastProperty) {