diff options
author | Wuzzy <almikes@aol.com> | 2017-02-11 19:35:39 +0100 |
---|---|---|
committer | Wuzzy <almikes@aol.com> | 2017-02-11 19:35:39 +0100 |
commit | 74d71cad2a0dba91f3abc9ce02f6b802c6a4855f (patch) | |
tree | ee1630e08ae0506ea807259bc5c226653eaad204 | |
parent | dfd7cae20fd8003f69986c93169ddd6678384961 (diff) |
Fix crash when tool has empty times table
-rw-r--r-- | init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -987,7 +987,7 @@ doc.add_category("tools", { end realuses = uses * math.pow(3, maxlevel) end - if v.times then + if v.times and #v.times > 1 then for rating, time in pairs(v.times) do local realtime = time / maxlevel if mintime == nil or realtime < mintime then |