From 050f131261015747752163a7343038279b6ff101 Mon Sep 17 00:00:00 2001 From: takase1121 <20792268+takase1121@users.noreply.github.com> Date: Tue, 6 Jul 2021 17:28:38 +0800 Subject: [PATCH] fix number of parameters passed to self:move_towards self:move_towards(self) causes self to be passed twice, ignoring rate --- data/core/view.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/core/view.lua b/data/core/view.lua index 2fb431d6..24c84c8d 100644 --- a/data/core/view.lua +++ b/data/core/view.lua @@ -18,7 +18,7 @@ end function View:move_towards(t, k, dest, rate) if type(t) ~= "table" then - return self:move_towards(self, t, k, dest, rate) + return self:move_towards(t, k, dest, rate) end local val = t[k] if not config.transitions or math.abs(val - dest) < 0.5 then