Fix comparison of number with nil

This commit is contained in:
ANAND 2020-01-10 12:05:13 +05:30
parent f955ac8916
commit 54598ce947
No known key found for this signature in database
GPG key ID: 3AD8A3C4A51AAB97

View file

@ -23,7 +23,7 @@ local function return_as_chat_result(to, target)
end
-- If stat does not exist yet, set place to size of players + 1
if place < 1 then
if not place then
place = #players + 1
end
else