Merge pull request #4555 from JosJuice/right-click-host-name

Fix player name not being loaded when using "Host with Netplay..."
This commit is contained in:
Mat M 2016-12-25 17:32:26 -05:00 committed by GitHub
commit 8ad6c3e911
1 changed files with 2 additions and 0 deletions

View File

@ -140,6 +140,8 @@ void NetPlayLaunchConfig::SetDialogInfo(const IniFile::Section& section, wxWindo
void NetPlayHostConfig::FromIniConfig(IniFile::Section& netplay_section)
{
netplay_section.Get("Nickname", &player_name, "Player");
std::string traversal_choice_setting;
netplay_section.Get("TraversalChoice", &traversal_choice_setting, "direct");
use_traversal = traversal_choice_setting == "traversal";