Skip to content

Commit

Permalink
Merge pull request #1323 from markusmarkusz/patch-15
Browse files Browse the repository at this point in the history
TTT: Call PlayerLoadout as hook
  • Loading branch information
svdm committed Jan 6, 2017
2 parents a5b6b29 + 98cb89d commit 230d080
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions garrysmod/gamemodes/terrortown/gamemode/weaponry.lua
Expand Up @@ -170,8 +170,8 @@ function GM:PlayerLoadout( ply )
end

function GM:UpdatePlayerLoadouts()
for k, v in pairs(player.GetAll()) do
GAMEMODE:PlayerLoadout(v)
for _, ply in ipairs(player.GetAll()) do
hook.Call("PlayerLoadout", GAMEMODE, ply)
end
end

Expand Down

0 comments on commit 230d080

Please sign in to comment.