From 5b6326b8aac157fe900496f551a580726955113c Mon Sep 17 00:00:00 2001 From: petrie911 <69443847+petrie911@users.noreply.github.com> Date: Mon, 25 Mar 2024 17:00:57 -0500 Subject: [PATCH] fix (#52) --- src/factories/sf64/ColPolyFactory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/factories/sf64/ColPolyFactory.cpp b/src/factories/sf64/ColPolyFactory.cpp index 1ff3135c..27cf2158 100644 --- a/src/factories/sf64/ColPolyFactory.cpp +++ b/src/factories/sf64/ColPolyFactory.cpp @@ -51,7 +51,7 @@ ExportResult SF64::ColPolyCodeExporter::Export(std::ostream &write, std::shared_ SPDLOG_ERROR("SF64:COLPOLY error: Nonzero value found in padding"); write << "/* ALERT: NONZERO PAD */ "; } - write << NUM(poly.dist, 6) << "}, "; + write << poly.dist << "}, "; } write << "\n};\n"; @@ -99,7 +99,7 @@ ExportResult SF64::ColPolyCodeExporter::Export(std::ostream &write, std::shared_ write << "// Mesh vertex count: " << colpolys->mMesh.size() << "\n"; } - return offset + colpolys->mMesh.size() * sizeof(Vec3s); + return off + colpolys->mMesh.size() * sizeof(Vec3s); } ExportResult SF64::ColPolyBinaryExporter::Export(std::ostream &write, std::shared_ptr raw, std::string& entryName, YAML::Node &node, std::string* replacement ) {