Browse Source

BUGFIX: Fix compiler warning: wrong order in initlist

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@521 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
kimmi 15 years ago
parent
commit
408b6b2d74
1 changed files with 16 additions and 8 deletions
  1. 16 8
      code/ACLoader.h

+ 16 - 8
code/ACLoader.h

@@ -115,6 +115,22 @@ protected:
 	// Represents an AC3D object
 	struct Object
 	{
+		Object()
+			:	type	(World)
+			,	name( "" )
+			,	children()
+			,	texture( "" )
+			,	texRepeat( 1.f, 1.f )
+			,	texOffset( 0.0f, 0.0f )
+			,	rotation()
+			,	translation()
+			,	vertices()
+			,	surfaces()
+			,	numRefs (0)
+			,	subDiv	(0)                
+		{}
+
+		// Type description
 		enum Type
 		{
 			World = 0x0,
@@ -123,14 +139,6 @@ protected:
 			Light = 0x4
 		} type;
 
-
-		Object()
-			:	texRepeat(1.f,1.f)
-			,	numRefs (0)
-			,	type	(World)
-			,	subDiv	(0)                
-		{}
-
 		// name of the object
 		std::string name;