Skip to content

Commit 9e4719b

Browse files
authored
Update receiver.lua
1 parent 110fb95 commit 9e4719b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lua/webaudio/receiver.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,11 @@ function updateObject(id, modify_enum, handle_bass, inside_net)
329329
self.parented = net.ReadBool()
330330
if self.parented then
331331
local ent = net.ReadEntity()
332+
if not IsValid(ent) then
333+
-- incredibly rare edge case that was never even reproduced, but w/e
334+
return
335+
end
336+
332337
self.parent = ent
333338
if self.pos ~= nil then
334339
-- We've initialized and received a changed position before

0 commit comments

Comments
 (0)