Fix wrong read on dist (CollisionPolyFactory) (#53)

* fix

* fix again
This commit is contained in:
petrie911
2024-03-25 16:26:50 -06:00
committed by GitHub
parent 5b6326b8aa
commit aa22c0803e
+1 -1
View File
@@ -128,7 +128,7 @@ std::optional<std::shared_ptr<IParsedData>> SF64::ColPolyFactory::parse(std::vec
int16_t ny = reader.ReadInt16();
int16_t nz = reader.ReadInt16();
int16_t pad2 = reader.ReadInt16();
int16_t dist = reader.ReadInt32();
int32_t dist = reader.ReadInt32();
polys.push_back(CollisionPoly({{v0, v1, v2}, pad1, {nx, ny, nz}, pad2, dist}));
}