read the correct movtex count field (#142)

This commit is contained in:
inspectredc
2024-07-08 17:18:48 -06:00
committed by GitHub
parent 40da02be28
commit e342a34f9c
+1 -1
View File
@@ -115,7 +115,7 @@ std::optional<std::shared_ptr<IParsedData>> SM64::MovtexFactory::parse(std::vect
// Otherwise we need to know the count of vertices and the colour attribute
if (!isQuad) {
if (node["count"]) {
count = GetSafeNode<uint32_t>(node, "quad");
count = GetSafeNode<uint32_t>(node, "count");
} else {
SPDLOG_WARN("Non quad movtex needs count field");
}