diff --git a/apps/openmw/mwstate/statemanagerimp.cpp b/apps/openmw/mwstate/statemanagerimp.cpp index 1759cdf549..8f0b3b74b1 100644 --- a/apps/openmw/mwstate/statemanagerimp.cpp +++ b/apps/openmw/mwstate/statemanagerimp.cpp @@ -109,13 +109,14 @@ void MWState::StateManager::askLoadRecent() 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); } else { - MWState::Slot lastSave = *getCurrentCharacter()->begin(); + MWState::Slot lastSave = *character->begin(); std::vector buttons; buttons.push_back("#{sYes}"); buttons.push_back("#{sNo}");