]> git.lizzy.rs Git - autotool.git/commitdiff
Fixed crash
authorElias Fleckenstein <eliasfleckenstein@web.de>
Sun, 13 Dec 2020 16:11:10 +0000 (17:11 +0100)
committerElias Fleckenstein <eliasfleckenstein@web.de>
Sun, 13 Dec 2020 16:11:10 +0000 (17:11 +0100)
init.lua

index c61db1609a7613e0a6da9e2de610c31fe4e2427c..2d50e263aab22a298c68c8a9a85ffffb28b3f868 100644 (file)
--- a/init.lua
+++ b/init.lua
@@ -8,7 +8,7 @@ local function check_tool(stack, node_groups, old_best_time)
                local level = node_groups[group]
                if level then
                        local this_time = groupdef.times[level]
-                       if this_time < best_time then
+                       if this_time and this_time < best_time then
                                best_time = this_time
                        end
                end