mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-08 11:51:23 -04: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
@ -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…
x
Reference in New Issue
Block a user