Don't save guest players to the players.xml file.

This commit is contained in:
hiker 2014-05-31 10:25:08 +10:00
parent 6643f749b1
commit a0ee4d0bc5

View File

@ -272,9 +272,11 @@ void PlayerManager::save()
<< m_current_player->getName() << L"\"/>\n";
}
// Save all non-guest players
PlayerProfile *player;
for_in(player, m_all_players)
{
if(!player->isGuestAccount())
player->save(players_file);
}
players_file << L"</players>\n";