Permalink
Browse files

Fixed a possible regression with Favorites list

  • Loading branch information...
robotboy655 committed Jan 12, 2017
1 parent 648d5c7 commit 181d0b8f626006871f98cf0fb2d95487694d880b
Showing with 5 additions and 4 deletions.
  1. +5 −4 garrysmod/lua/menu/mainmenu.lua
@@ -217,12 +217,13 @@ local ShouldStop = {}
function GetServers( type, id )
ShouldStop[ type ] = false
Servers[ type ] = {}
local data = {
Callback = function( ping , name, desc, map, players, maxplayers, botplayers, pass, lastplayed, address, gamemode, workshopid )
if Servers[ address ] then return end
Servers[ address ] = true
if Servers[ type ] && Servers[ type ][ address ] then return end
Servers[ type ][ address ] = true
name = string.JavascriptSafe( name )
desc = string.JavascriptSafe( desc )
@@ -241,7 +242,7 @@ function GetServers( type, id )
Finished = function()
pnlMainMenu:Call( "FinishedServeres( '" .. type .. "' )" )
Servers = {}
Servers[ type ] = {}
end,
Type = type,
@@ -256,7 +257,7 @@ end
function DoStopServers( type )
pnlMainMenu:Call( "FinishedServeres( '" .. type .. "' )" )
ShouldStop[ type ] = true
Servers = {}
Servers[ type ] = {}
end
--

0 comments on commit 181d0b8

Please sign in to comment.