Skip to content

Commit

Permalink
Fix crash?
Browse files Browse the repository at this point in the history
  • Loading branch information
LoneWolfHT committed May 21, 2024
1 parent 38cc968 commit 2781059
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions mods/ctf/ctf_modebase/features.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,13 @@ local LOADING_SCREEN_TARGET_TIME = 7
local loading_screen_time

local function update_playertag(player, t, nametag, team_nametag, symbol_nametag)
if not nametag.object.set_observers or
not team_nametag.object.set_observers or
if not nametag.object or not team_nametag.object or not symbol_nametag.object then
return -- TODO: Fix the issue
end

if
not nametag.object.set_observers or
not team_nametag.object.set_observers or
not symbol_nametag.object.set_observers
then
return
Expand Down

0 comments on commit 2781059

Please sign in to comment.