Skip to content

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
Astralcircle authored Dec 29, 2024
1 parent 656c255 commit 541a969
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/weapons/laserpointer/cl_init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ end
function SWEP:DrawWorldModel()
self:DrawModel()

if self:GetLaserEnabled() then
if self:GetLaserEnabled() and self.WAttach then
local att = self:GetAttachment(self.WAttach)
if not att then return end

Expand Down

0 comments on commit 541a969

Please sign in to comment.