mirror of
https://github.com/OpenMW/openmw.git
synced 2025-10-18 13:16:44 +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();
|
path = mPath / test.str();
|
||||||
}
|
}
|
||||||
|
|
||||||
mCharacters.emplace_back(path, mGame);
|
return &mCharacters.emplace_front(path, mGame);
|
||||||
return &mCharacters.back();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::list<MWState::Character>::iterator MWState::CharacterManager::findCharacter(const MWState::Character* character)
|
std::list<MWState::Character>::iterator MWState::CharacterManager::findCharacter(const MWState::Character* character)
|
||||||
|
|
Loading…
Reference in a new issue