gcc wouldn't compile using a reference
authorCampbell Barton <ideasman42@gmail.com>
Tue, 7 Apr 2009 23:21:30 +0000 (23:21 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 7 Apr 2009 23:21:30 +0000 (23:21 +0000)
source/gameengine/Ketsji/KX_MotionState.cpp

index 00d9a32eb38149189f727ad810cea64f7f4750a6..b4d58dccfdf1418a950b9a734be9057642883921 100644 (file)
@@ -60,7 +60,7 @@ void  KX_MotionState::getWorldScaling(float& scaleX,float& scaleY,float& scaleZ)
 
 void   KX_MotionState::getWorldOrientation(float& quatIma0,float& quatIma1,float& quatIma2,float& quatReal)
 {
-       MT_Quaternion& orn = m_node->GetWorldOrientation().getRotation();
+       MT_Quaternion orn = m_node->GetWorldOrientation().getRotation();
        quatIma0 = orn[0];
        quatIma1 = orn[1];
        quatIma2 = orn[2];