Skip to content

Commit

Permalink
Merge pull request #1179 from P4sca1/patch-1
Browse files Browse the repository at this point in the history
TTT: Fix possible script error
  • Loading branch information
svdm committed May 18, 2016
2 parents 2598c08 + 52425c6 commit 25ea2e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion garrysmod/gamemodes/terrortown/gamemode/weaponry.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ local IsEquipment = WEPS.IsEquipment

-- Prevent players from picking up multiple weapons of the same type etc
function GM:PlayerCanPickupWeapon(ply, wep)
if not IsValid(wep) and not IsValid(ply) then return end
if not IsValid(wep) or not IsValid(ply) then return end
if ply:IsSpec() then return false end

-- Disallow picking up for ammo
Expand Down

0 comments on commit 25ea2e3

Please sign in to comment.