Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vmap extractor - dont save struct padding to temp files #2832

Merged
merged 1 commit into from
Nov 17, 2024

Conversation

Gamemechanicwow
Copy link
Contributor

🍰 Pullrequest

sizeof(WMOLiquidHeader) returns the size of the struct which is padded to 32 bytes.
WMOLiquidHeader only contains 30 bytes of data. So 2 random unused bytes are being stored in each temporary file.

Proof

  • None

Issues

  • None

How2Test

  • None

Todo / Checklist

  • None

@0blu 0blu added the CPP A issue / PR which references CPP code label Nov 17, 2024
@ratkosrb
Copy link
Contributor

Is this a breaking change? Does is necessitate re-extraction of vmaps?

@Gamemechanicwow
Copy link
Contributor Author

nope. Nothing breaking. The 2 random bytes are written by vmap extractor to the temporary files in /buildings/ - and ignored by vmap assembler because it also used sizeof(WMOLiquidHeader).

@ratkosrb ratkosrb merged commit 05057dd into vmangos:development Nov 17, 2024
3 checks passed
@Gamemechanicwow Gamemechanicwow deleted the vmap-removepadding branch November 17, 2024 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CPP A issue / PR which references CPP code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants