This commit is contained in:
Simon Robertshaw 2012-09-29 22:53:32 +01:00
parent ef24a1ad44
commit 2e99638d76

View File

@ -752,11 +752,14 @@ void GameModel::SetStamp(GameSave * save)
void GameModel::SetPlaceSave(GameSave * save)
{
if(save != placeSave)
delete placeSave;
if(save != placeSave)
placeSave = new GameSave(*save);
else if(!save)
placeSave = NULL;
{
if(placeSave)
delete placeSave;
if(save)
placeSave = new GameSave(*save);
else
placeSave = NULL;
}
notifyPlaceSaveChanged();
}