everything is bigger than negative huge

This commit is contained in:
Lilian Jónsdóttir 2021-08-17 23:55:06 -07:00
parent a1ca2b129e
commit 7cc2431d74

View file

@ -54,7 +54,7 @@ end
-- picks the key of the largest value out of a key:whatever, value:number table
this.keyOfLargestValue = function(t)
local picked
local largest = 0
local largest = -math.huge
for key, value in pairs(t) do
if value > largest then
largest = value