mirror of
https://github.com/wiremod/wire.git
synced 2025-03-04 03:03:04 -05:00
Fix error (#3235)
* Fix error * move lookupattachment --------- Co-authored-by: thegrb93 <grbrown93@sbcglobal.net>
This commit is contained in:
parent
656c2556a6
commit
f8b50d70bc
@ -22,8 +22,6 @@ function SWEP:Setup(ply)
|
||||
self.Attach = attachmentIndex
|
||||
end
|
||||
end
|
||||
|
||||
self.WAttach = self:LookupAttachment("muzzle")
|
||||
end
|
||||
|
||||
function SWEP:Initialize()
|
||||
@ -45,7 +43,7 @@ function SWEP:DrawWorldModel()
|
||||
self:DrawModel()
|
||||
|
||||
if self:GetLaserEnabled() then
|
||||
local att = self:GetAttachment(self.WAttach)
|
||||
local att = self:GetAttachment(self:LookupAttachment("muzzle") or 0)
|
||||
if not att then return end
|
||||
|
||||
local owner = self:GetOwner()
|
||||
|
Loading…
Reference in New Issue
Block a user