Check presence of name and region in NetPlayServer

This commit is contained in:
JosJuice 2019-12-23 22:55:19 +01:00
parent 2fa4ef729f
commit 8e278b8053
1 changed files with 4 additions and 1 deletions

View File

@ -169,8 +169,11 @@ static void ClearPeerPlayerId(ENetPeer* peer)
void NetPlayServer::SetupIndex() void NetPlayServer::SetupIndex()
{ {
if (!Config::Get(Config::NETPLAY_USE_INDEX)) if (!Config::Get(Config::NETPLAY_USE_INDEX) || Config::Get(Config::NETPLAY_INDEX_NAME).empty() ||
Config::Get(Config::NETPLAY_INDEX_REGION).empty())
{
return; return;
}
NetPlaySession session; NetPlaySession session;