Better Fix
This commit is contained in:
parent
cd82bb2c41
commit
c21d34a166
@ -190,9 +190,12 @@ export class Struct {
|
|||||||
} else if (i === this.#properties.length) {
|
} else if (i === this.#properties.length) {
|
||||||
// End Of Structure Padding
|
// End Of Structure Padding
|
||||||
if (this.#size !== null && lastProperty) {
|
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;
|
neededPadding = this.#size - realSize;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// Inner Structure Padding
|
// Inner Structure Padding
|
||||||
if (property && lastProperty) {
|
if (property && lastProperty) {
|
||||||
|
Loading…
Reference in New Issue
Block a user