diff options
| author | petrie911 <69443847+petrie911@users.noreply.github.com> | 2024-03-25 17:26:50 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-25 16:26:50 -0600 |
| commit | aa22c0803efa346b7886e8c2d44a04eddb020b3c (patch) | |
| tree | febc835b130f86d7a894b7a6d80cf400bcd8ffa0 | |
| parent | 5b6326b8aac157fe900496f551a580726955113c (diff) | |
Fix wrong read on dist (CollisionPolyFactory) (#53)
* fix
* fix again
| -rw-r--r-- | src/factories/sf64/ColPolyFactory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/factories/sf64/ColPolyFactory.cpp b/src/factories/sf64/ColPolyFactory.cpp index 27cf215..67a6d86 100644 --- a/src/factories/sf64/ColPolyFactory.cpp +++ b/src/factories/sf64/ColPolyFactory.cpp @@ -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})); } |
