Don't save guest players to the players.xml file.
This commit is contained in:
parent
6643f749b1
commit
a0ee4d0bc5
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user