Эх сурвалжийг харах

[lua] Fix for Color:newWith

badlogic 9 жил өмнө
parent
commit
3ab208ed82

+ 1 - 1
spine-lua/Color.lua

@@ -45,7 +45,7 @@ end
 
 
 function Color.newWith (r, g, b, a)
 function Color.newWith (r, g, b, a)
 	local self = {
 	local self = {
-		r = a, g = g, b = b, a = a
+		r = r, g = g, b = b, a = a
 	}
 	}
 	setmetatable(self, Color)
 	setmetatable(self, Color)