Refactored variable declared in NetPlayServer.cpp OnConnect() from npver to netplay_version

This commit is contained in:
Sage King 2022-08-04 08:23:51 -06:00
parent a006b1416f
commit d11df2b700
1 changed files with 3 additions and 3 deletions

View File

@ -393,10 +393,10 @@ ConnectionError NetPlayServer::OnConnect(ENetPeer* socket, sf::Packet& rpac)
}
socket->data = new PlayerId(pid);
std::string npver;
rpac >> npver;
std::string netplay_version;
rpac >> netplay_version;
// Dolphin netplay version
if (npver != Common::GetScmRevGitStr())
if (netplay_version != Common::GetScmRevGitStr())
return ConnectionError::VersionMismatch;
// game is currently running or game start is pending