Fix remove player bug
This commit is contained in:
parent
cb7f00cd11
commit
dd4a35f376
@ -101,9 +101,10 @@ function ctf.player_or_nil(name)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function ctf.remove_player(name)
|
function ctf.remove_player(name)
|
||||||
|
ctf.log("team", "Removing player ".. dump(name))
|
||||||
local player = ctf.players[name]
|
local player = ctf.players[name]
|
||||||
if player then
|
if player then
|
||||||
local team = ctf.team(ctf.players.team)
|
local team = ctf.team(player.team)
|
||||||
if team then
|
if team then
|
||||||
team.players[name] = nil
|
team.players[name] = nil
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user