1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-10-17 06:46:35 +00:00

Prepend new characters so they're first on the list

This commit is contained in:
Evil Eye 2025-07-12 19:32:32 +02:00
parent 403b5d19e0
commit 6dd10f1666

View file

@ -81,8 +81,7 @@ MWState::Character* MWState::CharacterManager::createCharacter(const std::string
path = mPath / test.str();
}
mCharacters.emplace_back(path, mGame);
return &mCharacters.back();
return &mCharacters.emplace_front(path, mGame);
}
std::list<MWState::Character>::iterator MWState::CharacterManager::findCharacter(const MWState::Character* character)