Skip to content

Commit

Permalink
fix (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
petrie911 authored Mar 25, 2024
1 parent 81f4371 commit 5b6326b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/factories/sf64/ColPolyFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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<IParsedData> raw, std::string& entryName, YAML::Node &node, std::string* replacement ) {
Expand Down

0 comments on commit 5b6326b

Please sign in to comment.