Ver Fonte

fix LuaVector3::negate()

mikymod há 12 anos atrás
pai
commit
bfd773d14a
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      engine/lua/LuaVector3.cpp

+ 1 - 1
engine/lua/LuaVector3.cpp

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