2
0
Kim Kulling 3 жил өмнө
parent
commit
80a8807c47

+ 1 - 1
code/AssetLib/LWO/LWOLoader.cpp

@@ -82,8 +82,8 @@ static const aiImporterDesc desc = {
 // Constructor to be privately used by Importer
 LWOImporter::LWOImporter() :
         mIsLWO2(),
-        mIsLWO3(),
         mIsLXOB(),
+        mIsLWO3(),
         mLayers(),
         mCurLayer(),
         mTags(),

+ 3 - 7
code/AssetLib/LWO/LWOMaterial.cpp

@@ -885,17 +885,13 @@ void LWOImporter::LoadNodeData(unsigned int size) {
                             GetS0(valueType, 8);
 
                             if (valueType == "int") {
-                                uint32_t value;
-                                value = GetU4();
+                                static_cast<void>(GetU4());
                             } else if (valueType == "double") {
-                                uint64_t value;
-                                value = GetU8();
+                                static_cast<void>(GetU8());
                             } else if (valueType == "vparam") {
                                 mFileBuffer += 24;
 
-                                float value;
-                                value = GetF8();
-
+                                float value = GetF8();
                                 if (attrName == "Diffuse") {
                                     surf.mDiffuseValue = value;
                                 } else if (attrName == "Specular") {