forked from teamnwah/openmw-tes3coop
when scanning saved game directory, reject characters without a valid saved game
This commit is contained in:
parent
2e87cbc231
commit
18a3b38fb4
1 changed files with 3 additions and 1 deletions
|
@ -23,7 +23,9 @@ MWState::CharacterManager::CharacterManager (const boost::filesystem::path& save
|
|||
if (boost::filesystem::is_directory (characterDir))
|
||||
{
|
||||
Character character (characterDir);
|
||||
mCharacters.push_back (character);
|
||||
|
||||
if (character.begin()!=character.end())
|
||||
mCharacters.push_back (character);
|
||||
}
|
||||
|
||||
std::istringstream stream (characterDir.filename().string());
|
||||
|
|
Loading…
Reference in a new issue