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:
parent
403b5d19e0
commit
6dd10f1666
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue