Cpp2IL
Cpp2IL copied to clipboard
Field offsets sometimes have garbage values
Example: HatOptions struct in Among Us 2022.12.8s, unity 2020.3.22f1

The game itself is able to parse them correctly because il2cpp_field_get_offset returns correct values and as far as I know it only recalculates them at runtime for generic classes.