1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 07:23:54 +00:00

when scanning saved game directory, reject characters without a valid saved game

This commit is contained in:
Marc Zinnschlag 2013-11-24 14:42:58 +01:00
parent 2e87cbc231
commit 18a3b38fb4

View file

@ -23,6 +23,8 @@ MWState::CharacterManager::CharacterManager (const boost::filesystem::path& save
if (boost::filesystem::is_directory (characterDir))
{
Character character (characterDir);
if (character.begin()!=character.end())
mCharacters.push_back (character);
}