Skip to content

Commit

Permalink
Merge pull request #582 from HandsomeMatt/patch-2
Browse files Browse the repository at this point in the history
Fix hooks.
  • Loading branch information
UnderscoreKilburn committed Jan 28, 2014
2 parents 5e845c6 + 545fffc commit 9292294
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion garrysmod/lua/includes/modules/hook.lua
Expand Up @@ -51,7 +51,7 @@ end
Desc: Calls hooks associated with the hook name.
-----------------------------------------------------------]]
function Run( name, ... )
return Call( name, gmod.GetGamemode(), ... )
return Call( name, gmod and gmod.GetGamemode() or nil, ... )
end
--[[---------------------------------------------------------
Expand Down

0 comments on commit 9292294

Please sign in to comment.