From 408b6b2d744dcdc4ec9afc56c8acfe6e3cd0f34c Mon Sep 17 00:00:00 2001 From: kimmi Date: Thu, 24 Dec 2009 11:47:31 +0000 Subject: [PATCH] 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 --- code/ACLoader.h | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/code/ACLoader.h b/code/ACLoader.h index fdf6bfdc5..2d9624b37 100644 --- a/code/ACLoader.h +++ b/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;