Fix player name not being loaded when using "Host with Netplay..."

This commit is contained in:
JosJuice 2016-12-25 16:36:19 +01:00
parent 09c6148aba
commit 70d9440d10
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) void NetPlayHostConfig::FromIniConfig(IniFile::Section& netplay_section)
{ {
netplay_section.Get("Nickname", &player_name, "Player");
std::string traversal_choice_setting; std::string traversal_choice_setting;
netplay_section.Get("TraversalChoice", &traversal_choice_setting, "direct"); netplay_section.Get("TraversalChoice", &traversal_choice_setting, "direct");
use_traversal = traversal_choice_setting == "traversal"; use_traversal = traversal_choice_setting == "traversal";