Browse Source

Fix vector3_negate

Daniele Bartolini 12 years ago
parent
commit
c0f5b85fd6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      engine/lua/LuaVector3.cpp

+ 2 - 2
engine/lua/LuaVector3.cpp

@@ -232,9 +232,9 @@ CE_EXPORT int vector3_negate(lua_State* L)
 
 	Vector3& a = stack.get_vector3(1);
 
-	a.negate();
+	stack.push_vector3(-a);
 
-	return 0;
+	return 1;
 }
 
 //-----------------------------------------------------------------------------