Fixed a crash exploit in console commands

This commit is contained in:
zpetty33 2015-07-30 13:47:38 -07:00
parent 7be994f805
commit 718877470d

View File

@ -1306,7 +1306,9 @@ if SERVER then
end
local function hookRoute( ply, command, argv )
concommand.Run( ply, table.remove( argv, 1 ), argv )
if table.Count(argv) > 0 then
concommand.Run( ply, table.remove( argv, 1 ), argv )
end
end
concommand.Add( "_u", hookRoute )
end