mirror of
https://github.com/OpenMW/openmw.git
synced 2025-11-10 18:26:39 +00:00
Merge branch 'first' into 'master'
Prepend new characters so they're first on the list See merge request OpenMW/openmw!4778
This commit is contained in:
commit
4f60284a35
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