1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 23:53:57 +00:00

removed a redundant check

This commit is contained in:
Marc Zinnschlag 2014-04-24 09:54:47 +02:00
parent 5b681e2199
commit 42b3233bda

View file

@ -227,8 +227,7 @@ void MWState::StateManager::quickSave(std::string name) {
if(MWBase::Environment::get().getWorld()->getGlobalInt ("chargenstate")==-1) { //ensure you're not in character creation
const MWState::Slot* slot = NULL;
MWState::Character* mCurrentCharacter = MWBase::Environment::get().getStateManager()->getCurrentCharacter(true); //Get current character
if (mCurrentCharacter) //Ensure one exists
{
//Find quicksave slot
for (MWState::Character::SlotIterator it = mCurrentCharacter->begin(); it != mCurrentCharacter->end(); ++it)
{
@ -238,7 +237,6 @@ void MWState::StateManager::quickSave(std::string name) {
MWBase::Environment::get().getStateManager()->saveGame(name, slot);
}
}
}
void MWState::StateManager::loadGame (const Character *character, const Slot *slot)
{