瀏覽代碼

Initialized stride variable to prevent compiler warnings about potential use of unassigned variable.

Sherief Farouk 12 年之前
父節點
當前提交
04b0ea3f9a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      code/FBXParser.cpp

+ 1 - 1
code/FBXParser.cpp

@@ -512,7 +512,7 @@ void ReadBinaryDataArray(char type, uint32_t count, const char*& data, const cha
 	ai_assert(data + comp_len == end);
 
 	// determine the length of the uncompressed data by looking at the type signature
-	uint32_t stride;
+	uint32_t stride = 0;
 	switch(type)
 	{
 	case 'f':