ReClass.NET icon indicating copy to clipboard operation
ReClass.NET copied to clipboard

Structure size bigger than expected when generating c++ code.

Open BoozeAddict opened this issue 4 years ago • 1 comments

This is a very minor issue, but when the code is generated, the assert part doesn't account for padding. For example , a 0x2C size structure would be padded to 0x30 on an x64 application, to align with 8 bytes. Can be solved by manually changing the assert, or removing it entirely, but dropping this here in case someone gets confused why this happens.

BoozeAddict avatar Mar 08 '21 09:03 BoozeAddict

Yes, the assert expects a #pragma pack(1) for the classes. There may be a setting to deactivate the assertion in the future.

KN4CK3R avatar Jun 04 '21 11:06 KN4CK3R