mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-25 06:05:46 +03:00
Correctly handle lobby refresh with null filter
Currently if a null filter is given, more filters are added to the call than expected. This change makes a lobby request after the appid filter is added and returns immediately resolving the issue.
This commit is contained in:
parent
aa3a6d4d24
commit
2fb0df5ae3
@ -41,6 +41,8 @@ public void Refresh ( Filter filter = null)
|
||||
{
|
||||
filter = new Filter();
|
||||
filter.StringFilters.Add("appid", client.AppId.ToString());
|
||||
client.native.matchmaking.RequestLobbyList(OnLobbyList);
|
||||
return;
|
||||
}
|
||||
|
||||
client.native.matchmaking.AddRequestLobbyListDistanceFilter((SteamNative.LobbyDistanceFilter)filter.DistanceFilter);
|
||||
|
Loading…
Reference in New Issue
Block a user