Skip to content

Commit

Permalink
Fix NULL errors (#3144)
Browse files Browse the repository at this point in the history
  • Loading branch information
Astralcircle authored Oct 13, 2024
1 parent b2ed354 commit 7dd11e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/entities/base_wire_entity.lua
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ if CLIENT then
looked_at:BeingLookedAtByLocalPlayer()
end

if cur_ent.IsWire and cur_ent:BeingLookedAtByLocalPlayer() then
if IsValid(cur_ent) and cur_ent.IsWire and cur_ent:BeingLookedAtByLocalPlayer() then
looked_at = cur_ent
else
looked_at = nil
Expand Down

0 comments on commit 7dd11e5

Please sign in to comment.