Update quiz.lua

Fix Lua quiz break https://github.com/pvpgn/pvpgn-server/issues/196
This commit is contained in:
HarpyWar 2016-08-18 09:40:05 +03:00 committed by GitHub
parent 49cffbae75
commit 0d9747a1ad

View file

@ -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