vabold / Kinoko

A reimplementation of Mario Kart Wii's physics engine in C++
MIT License
46 stars 10 forks source link

CourseMap MapdataAccessors don't properly byteswap #86

Closed JohnP55 closed 6 months ago

JohnP55 commented 6 months ago

MapdataFileAccessor::findSection parses an offset into the KMP file as a const MapSectionHeader *, and never actually converts endianness. Then, MapdataAccessorBase::init reads the count in the wrong endianness, causing 256 KartPoint allocations instead of 1.