Skip to content

Commit 2781059

Browse files
committed
Fix crash?
1 parent 38cc968 commit 2781059

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

mods/ctf/ctf_modebase/features.lua

+7-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,13 @@ local LOADING_SCREEN_TARGET_TIME = 7
2727
local loading_screen_time
2828

2929
local function update_playertag(player, t, nametag, team_nametag, symbol_nametag)
30-
if not nametag.object.set_observers or
31-
not team_nametag.object.set_observers or
30+
if not nametag.object or not team_nametag.object or not symbol_nametag.object then
31+
return -- TODO: Fix the issue
32+
end
33+
34+
if
35+
not nametag.object.set_observers or
36+
not team_nametag.object.set_observers or
3237
not symbol_nametag.object.set_observers
3338
then
3439
return

0 commit comments

Comments
 (0)