Fix another crash

master
upsilon 2017-05-27 13:12:44 +02:00
parent 402c05ae81
commit 076d29d030
No known key found for this signature in database
GPG Key ID: A80DAE1F266E1C3C
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ function pvpplus.get_score(name)
if not pvpplus.is_running_tournament() then
return false, "There is no running tournament."
end
if not pvpplus.sent_damages[name] then
if not tournament.sent_damages[name] then
return false, "Player " .. name .. " did not play in the current tournament."
end
return tournament.sent_damages[name] - tournament.received_damages[name] + tournament.kills[name] * 20