diff --git a/code/AssetLib/Collada/ColladaParser.cpp b/code/AssetLib/Collada/ColladaParser.cpp index 25034defb..47d96ff94 100644 --- a/code/AssetLib/Collada/ColladaParser.cpp +++ b/code/AssetLib/Collada/ColladaParser.cpp @@ -1622,11 +1622,7 @@ void ColladaParser::ReadIndexData(XmlNode &node, Mesh &pMesh) { throw DeadlyImportError("Expected more values while reading contents."); } // read a number - size_t valueRead = (size_t)strtoul10(content, &content); - if(valueRead == 0) { - printf("wohoo"); - } - vcount.push_back(valueRead); + vcount.push_back((size_t)strtoul10(content, &content)); // skip whitespace after it SkipSpacesAndLineEnd(&content); } diff --git a/code/AssetLib/MMD/MMDPmxParser.h b/code/AssetLib/MMD/MMDPmxParser.h index 4b3968dec..c9df37c68 100644 --- a/code/AssetLib/MMD/MMDPmxParser.h +++ b/code/AssetLib/MMD/MMDPmxParser.h @@ -358,9 +358,7 @@ namespace pmx public: void virtual Read(std::istream *stream, PmxSetting *setting) = 0; - virtual ~PmxMorphOffset() { - - } + virtual ~PmxMorphOffset() = default; }; class PmxMorphVertexOffset : public PmxMorphOffset