diff --git a/quant.ew/files/system/spectator_helps/spectator_helps.lua b/quant.ew/files/system/spectator_helps/spectator_helps.lua index c7d523f8..cb6ac6a1 100644 --- a/quant.ew/files/system/spectator_helps/spectator_helps.lua +++ b/quant.ew/files/system/spectator_helps/spectator_helps.lua @@ -5,7 +5,7 @@ local shield_entities = {} rpc.opts_everywhere() rpc.opts_reliable() function rpc.add_shield(target) - if GameHasFlagRun("ending_game_completed") then + if GameHasFlagRun("ending_game_completed") or target == nil or ctx.players[target] == nil then return end local entity = ctx.players[target].entity