Fix comparison of number with nil
This commit is contained in:
parent
f955ac8916
commit
54598ce947
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ local function return_as_chat_result(to, target)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- If stat does not exist yet, set place to size of players + 1
|
-- If stat does not exist yet, set place to size of players + 1
|
||||||
if place < 1 then
|
if not place then
|
||||||
place = #players + 1
|
place = #players + 1
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue