summaryrefslogtreecommitdiff
path: root/src/factories/mk64/WaypointFactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/factories/mk64/WaypointFactory.cpp')
-rw-r--r--src/factories/mk64/WaypointFactory.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/factories/mk64/WaypointFactory.cpp b/src/factories/mk64/WaypointFactory.cpp
index 9ec96bc..ea84ede 100644
--- a/src/factories/mk64/WaypointFactory.cpp
+++ b/src/factories/mk64/WaypointFactory.cpp
@@ -62,8 +62,8 @@ std::optional<std::shared_ptr<IParsedData>> MK64::WaypointFactory::parse(std::ve
auto offset = node["offset"].as<uint32_t>();
auto count = node["count"].as<size_t>();
- auto decoded = MIO0Decoder::Decode(buffer, mio0);
- LUS::BinaryReader reader(decoded.data() + offset, count * sizeof(MK64::TrackWaypoint) );
+ auto decoded = MIO0Decoder::Decode(buffer, offset);
+ LUS::BinaryReader reader(decoded.data() + mio0, count * sizeof(MK64::TrackWaypoint) );
reader.SetEndianness(LUS::Endianness::Big);
std::vector<MK64::TrackWaypoint> waypoints;