mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-01 17:45:34 +00:00
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,6 +23,8 @@ MWState::CharacterManager::CharacterManager (const boost::filesystem::path& save
|
||||||
if (boost::filesystem::is_directory (characterDir))
|
if (boost::filesystem::is_directory (characterDir))
|
||||||
{
|
{
|
||||||
Character character (characterDir);
|
Character character (characterDir);
|
||||||
|
|
||||||
|
if (character.begin()!=character.end())
|
||||||
mCharacters.push_back (character);
|
mCharacters.push_back (character);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue