Skip to content

Commit 6d49261

Browse files
authored
Fix lua error (#1995)
1 parent a5c0e39 commit 6d49261

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lua/entities/starfall_processor/shared.lua

+3-2
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,9 @@ else
303303
if v.ActiveHuds[ply] then
304304
SF.EnableHud(ply, v, nil, false)
305305

306-
if v.instance.permissionOverrides then
307-
v.instance.permissionOverrides.enablehud = nil
306+
local instance = v.instance
307+
if instance and instance.permissionOverrides then
308+
instance.permissionOverrides.enablehud = nil
308309
end
309310
end
310311
end

0 commit comments

Comments
 (0)