Skip to content

Commit

Permalink
Fix NULL error
Browse files Browse the repository at this point in the history
  • Loading branch information
wrefgtzweve committed May 21, 2024
1 parent e88e317 commit 61e9048
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/weapons/gmod_tool/stools/wire_adv.lua
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,11 @@ elseif CLIENT then
end

if self:GetStage() == 2 then
if not IsValid( self.CurrentEntity ) then
self:SetStage(0)
return
end

local _, outputs = self:GetPorts( self.CurrentEntity )

if alt then -- Auto wiring
Expand Down

0 comments on commit 61e9048

Please sign in to comment.