From 0d9747a1ad8ccad292e1e02ac5e09b071dc12c1b Mon Sep 17 00:00:00 2001 From: HarpyWar Date: Thu, 18 Aug 2016 09:40:05 +0300 Subject: [PATCH] Update quiz.lua Fix Lua quiz break https://github.com/pvpgn/pvpgn-server/issues/196 --- lua/quiz/quiz.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/quiz/quiz.lua b/lua/quiz/quiz.lua index e5d32c6..c81202b 100644 --- a/lua/quiz/quiz.lua +++ b/lua/quiz/quiz.lua @@ -117,7 +117,7 @@ function quiz:stop(username) q_records_total[idx].points = t.points else -- update diff if it was changed to negative - if q_records_diff[tusername] < 0 then + if tonumber(q_records_diff[tusername]) < 0 then q_records_diff[tusername] = q_records_diff[tusername] + t.points end q_records_total[idx].points = q_records_total[idx].points + t.points