From 82d91d177eb593e2d8d30e20ce01fa41c43b9e88 Mon Sep 17 00:00:00 2001 From: Pinya <800pin.ru@gmail.com> Date: Mon, 19 Feb 2018 23:25:36 +0300 Subject: [PATCH] nil arg fix --- !Compatibility/api/wowAPI.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/!Compatibility/api/wowAPI.lua b/!Compatibility/api/wowAPI.lua index c652799..40173d4 100644 --- a/!Compatibility/api/wowAPI.lua +++ b/!Compatibility/api/wowAPI.lua @@ -296,13 +296,13 @@ local function OnSizeChanged() this.texturePointer:SetHeight(height) end -local function OnValueChanged(value) +local function OnValueChanged() local _, max = this:GetMinMaxValues() if this.texturePointer.verticalOrientation then - this.texturePointer:SetHeight(this.texturePointer.height * (value / max)) + this.texturePointer:SetHeight(this.texturePointer.height * (arg1 / max)) else - this.texturePointer:SetWidth(this.texturePointer.width * (value / max)) + this.texturePointer:SetWidth(this.texturePointer.width * (arg1 / max)) end end