1
0
mirror of https://github.com/CFC-Servers/chucks_weaponry_2.0.git synced 2025-03-04 03:13:12 -05:00

Check for null CW_VM

This commit is contained in:
Redox 2023-11-19 16:54:51 +01:00 committed by GitHub
parent 0070f8088c
commit 3d843375be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1075,6 +1075,7 @@ function SWEP:PostDrawViewModel()
end
function SWEP:getMuzzlePosition()
if not IsValid( self.CW_VM ) then return end
return self.CW_VM:GetAttachment(self.MuzzleAttachment)
end