Fix crash on nil team name

This commit is contained in:
rubenwardy 2015-07-14 14:38:41 +01:00
parent 410345546c
commit e536384f4e

View File

@ -23,7 +23,7 @@ function ctf.team(name)
return ctf.teams[name.name] return ctf.teams[name.name]
else else
if not ctf.teams[name] then if not ctf.teams[name] then
ctf.warning("team", "'" .. name.."' does not exist!") ctf.warning("team", dump(name) .. " does not exist!")
end end
return ctf.teams[name] return ctf.teams[name]
end end