everything is bigger than negative huge
This commit is contained in:
parent
a1ca2b129e
commit
7cc2431d74
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ end
|
||||||
-- picks the key of the largest value out of a key:whatever, value:number table
|
-- picks the key of the largest value out of a key:whatever, value:number table
|
||||||
this.keyOfLargestValue = function(t)
|
this.keyOfLargestValue = function(t)
|
||||||
local picked
|
local picked
|
||||||
local largest = 0
|
local largest = -math.huge
|
||||||
for key, value in pairs(t) do
|
for key, value in pairs(t) do
|
||||||
if value > largest then
|
if value > largest then
|
||||||
largest = value
|
largest = value
|
||||||
|
|
Loading…
Add table
Reference in a new issue