Permalink
Browse files

fix crash from previous commit

  • Loading branch information...
jacob1 committed Dec 16, 2015
1 parent 8d4e333 commit 762093371b6192ead97629a3c654bdedd6603067
Showing with 5 additions and 4 deletions.
  1. +5 −4 src/gui/game/GameController.cpp
@@ -1098,11 +1098,12 @@ void GameController::OpenLocalSaveWindow(bool asCurrent)
sim->SaveSimOptions(gameSave);
gameSave->paused = gameModel->GetPaused();
std::string filename = "";
SaveFile tempSave("");
if (gameModel->GetSaveFile())
filename = gameModel->GetSaveFile()->GetName();
SaveFile tempSave(filename);
tempSave.SetDisplayName(gameModel->GetSaveFile()->GetDisplayName());
{
tempSave.SetFileName(gameModel->GetSaveFile()->GetName());
tempSave.SetDisplayName(gameModel->GetSaveFile()->GetDisplayName());
}
tempSave.SetGameSave(gameSave);
if (!asCurrent || !gameModel->GetSaveFile())

0 comments on commit 7620933

Please sign in to comment.