nil arg fix

This commit is contained in:
Pinya
2018-02-19 23:25:36 +03:00
parent d6877724ea
commit 82d91d177e
+3 -3
View File
@@ -296,13 +296,13 @@ local function OnSizeChanged()
this.texturePointer:SetHeight(height) this.texturePointer:SetHeight(height)
end end
local function OnValueChanged(value) local function OnValueChanged()
local _, max = this:GetMinMaxValues() local _, max = this:GetMinMaxValues()
if this.texturePointer.verticalOrientation then if this.texturePointer.verticalOrientation then
this.texturePointer:SetHeight(this.texturePointer.height * (value / max)) this.texturePointer:SetHeight(this.texturePointer.height * (arg1 / max))
else else
this.texturePointer:SetWidth(this.texturePointer.width * (value / max)) this.texturePointer:SetWidth(this.texturePointer.width * (arg1 / max))
end end
end end