From a0ee4d0bc5a248a8118e6b5f0c7bb891689299ac Mon Sep 17 00:00:00 2001 From: hiker Date: Sat, 31 May 2014 10:25:08 +1000 Subject: [PATCH] Don't save guest players to the players.xml file. --- src/config/player_manager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/config/player_manager.cpp b/src/config/player_manager.cpp index 6884147a4..e75d4210a 100644 --- a/src/config/player_manager.cpp +++ b/src/config/player_manager.cpp @@ -272,10 +272,12 @@ void PlayerManager::save() << m_current_player->getName() << L"\"/>\n"; } + // Save all non-guest players PlayerProfile *player; for_in(player, m_all_players) { - player->save(players_file); + if(!player->isGuestAccount()) + player->save(players_file); } players_file << L"\n"; players_file.close();