diff --git a/utils/game.lua b/utils/game.lua index 8d6179be..0ef0209c 100644 --- a/utils/game.lua +++ b/utils/game.lua @@ -54,8 +54,8 @@ function Game.get_player_from_any(obj) p = Game.get_player_by_index(obj) elseif o_type == 'string' then p = game.players[obj] - elseif o_type == 'table' and obj.is_player() then - p = obj + elseif o_type == 'table' and obj.valid and obj.is_player() then + return obj end if p and p.valid then