Pārlūkot izejas kodu

Update UnrealLoader.cpp

Fix static code analysis findings.
Kim Kulling 5 gadi atpakaļ
vecāks
revīzija
80323b57bc
1 mainītis faili ar 1 papildinājumiem un 3 dzēšanām
  1. 1 3
      code/Unreal/UnrealLoader.cpp

+ 1 - 3
code/Unreal/UnrealLoader.cpp

@@ -92,7 +92,6 @@ struct Triangle {
 	unsigned char mTex[3][2]; // Texture UV coordinates
 	unsigned char mTextureNum; // Source texture offset
 	char mFlags; // Unreal Mesh Flags (unused)
-
 	unsigned int matIndex;
 };
 
@@ -131,11 +130,11 @@ inline void CompressVertex(const aiVector3D &v, uint32_t &out) {
 		Vertex n;
 		int32_t t;
 	};
+    t = 0;
 	n.X = (int32_t)v.x;
 	n.Y = (int32_t)v.y;
 	n.Z = (int32_t)v.z;
 	::memcpy(&out, &t, sizeof(int32_t));
-	//out = t;
 }
 
 // UNREAL vertex decompression
@@ -153,7 +152,6 @@ inline void DecompressVertex(aiVector3D &v, int32_t in) {
 
 } // end namespace Unreal
 
-
 static const aiImporterDesc desc = {
     "Unreal Mesh Importer",
     "",