fix crash from previous commit
This commit is contained in:
parent
8d4e333986
commit
762093371b
@ -1098,11 +1098,12 @@ void GameController::OpenLocalSaveWindow(bool asCurrent)
|
|||||||
sim->SaveSimOptions(gameSave);
|
sim->SaveSimOptions(gameSave);
|
||||||
gameSave->paused = gameModel->GetPaused();
|
gameSave->paused = gameModel->GetPaused();
|
||||||
|
|
||||||
std::string filename = "";
|
SaveFile tempSave("");
|
||||||
if (gameModel->GetSaveFile())
|
if (gameModel->GetSaveFile())
|
||||||
filename = gameModel->GetSaveFile()->GetName();
|
{
|
||||||
SaveFile tempSave(filename);
|
tempSave.SetFileName(gameModel->GetSaveFile()->GetName());
|
||||||
tempSave.SetDisplayName(gameModel->GetSaveFile()->GetDisplayName());
|
tempSave.SetDisplayName(gameModel->GetSaveFile()->GetDisplayName());
|
||||||
|
}
|
||||||
tempSave.SetGameSave(gameSave);
|
tempSave.SetGameSave(gameSave);
|
||||||
|
|
||||||
if (!asCurrent || !gameModel->GetSaveFile())
|
if (!asCurrent || !gameModel->GetSaveFile())
|
||||||
|
Loading…
Reference in New Issue
Block a user