Update quiz.lua
Fix Lua quiz break https://github.com/pvpgn/pvpgn-server/issues/196
This commit is contained in:
parent
49cffbae75
commit
0d9747a1ad
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue