mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-07-14 23:51:45 +00:00
Addition to last commit, don't create a save directory on death
This commit is contained in:
parent
426a6fdcc2
commit
7463c0c353
1 changed files with 3 additions and 2 deletions
|
@ -109,13 +109,14 @@ void MWState::StateManager::askLoadRecent()
|
||||||
|
|
||||||
if( !mAskLoadRecent )
|
if( !mAskLoadRecent )
|
||||||
{
|
{
|
||||||
if(getCurrentCharacter()->begin() == getCurrentCharacter()->end() )//no saves
|
const MWState::Character* character = getCurrentCharacter(false);
|
||||||
|
if(!character || character->begin() == character->end())//no saves
|
||||||
{
|
{
|
||||||
MWBase::Environment::get().getWindowManager()->pushGuiMode (MWGui::GM_MainMenu);
|
MWBase::Environment::get().getWindowManager()->pushGuiMode (MWGui::GM_MainMenu);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
MWState::Slot lastSave = *getCurrentCharacter()->begin();
|
MWState::Slot lastSave = *character->begin();
|
||||||
std::vector<std::string> buttons;
|
std::vector<std::string> buttons;
|
||||||
buttons.push_back("#{sYes}");
|
buttons.push_back("#{sYes}");
|
||||||
buttons.push_back("#{sNo}");
|
buttons.push_back("#{sNo}");
|
||||||
|
|
Loading…
Reference in a new issue