Better Fix
This commit is contained in:
parent
cd82bb2c41
commit
c21d34a166
@ -190,8 +190,11 @@ 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());
|
||||
neededPadding = this.#size - realSize;
|
||||
const realSize = lastProperty.propertyOffset() + lastProperty.propertySize();
|
||||
const realRoundedSize = this.#roundSize(realSize);
|
||||
if (realRoundedSize !== this.#size) {
|
||||
neededPadding = this.#size - realSize;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// Inner Structure Padding
|
||||
|
Loading…
Reference in New Issue
Block a user