From 760ce55de16f0fe997612d4109ec791112935c8b Mon Sep 17 00:00:00 2001 From: Duncan Overbruck Date: Fri, 23 Jun 2023 13:11:18 +0200 Subject: [PATCH] device/state-routes.lua: fix finding stored routes This wrongly stored the matched route in a new variable instead of the locally declared variable it supposed to use. --- src/scripts/device/state-routes.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/device/state-routes.lua b/src/scripts/device/state-routes.lua index 20c86027..f4aa3b8c 100644 --- a/src/scripts/device/state-routes.lua +++ b/src/scripts/device/state-routes.lua @@ -67,7 +67,7 @@ find_stored_routes_hook = SimpleEventHook { if cutils.arrayContains (ri.devices, tonumber (device_id)) and (ri.profiles == nil or cutils.arrayContains (ri.profiles, dev_info.active_profile)) and cutils.arrayContains (spr, ri.name) then - route = ri + route_info = ri break end end