From 54598ce9475024cdcd89da09809310cbfa3385b6 Mon Sep 17 00:00:00 2001 From: ANAND Date: Fri, 10 Jan 2020 12:05:13 +0530 Subject: [PATCH] Fix comparison of number with nil --- mods/ctf/ctf_stats/chat.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ctf/ctf_stats/chat.lua b/mods/ctf/ctf_stats/chat.lua index 259276c..9e02d5b 100644 --- a/mods/ctf/ctf_stats/chat.lua +++ b/mods/ctf/ctf_stats/chat.lua @@ -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