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.
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.