summaryrefslogtreecommitdiff
path: root/mesecons/actionqueue.lua
diff options
context:
space:
mode:
Diffstat (limited to 'mesecons/actionqueue.lua')
-rw-r--r--mesecons/actionqueue.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesecons/actionqueue.lua b/mesecons/actionqueue.lua
index a5daf88..e0b8c65 100644
--- a/mesecons/actionqueue.lua
+++ b/mesecons/actionqueue.lua
@@ -44,7 +44,8 @@ end
-- However, even that does not work in some cases, that's why we delay the time the globalsteps
-- start to be execute by 5 seconds
local get_highest_priority = function (actions)
- local highestp = -1, highesti
+ local highestp = -1
+ local highesti
for i, ac in ipairs(actions) do
if ac.priority > highestp then
highestp = ac.priority