Skip to content

Commit

Permalink
don't add null stuff when loading old stamps without author info
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Jul 16, 2017
1 parent ad5a2a0 commit 971e405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/game/GameController.cpp
Expand Up @@ -331,7 +331,7 @@ void GameController::PlaceSave(ui::Point position)
{
gameModel->SetPaused(placeSave->paused | gameModel->GetPaused());
// if this is a clipboard and there is no author info, don't do anything
if (Client::Ref().IsAuthorsEmpty() || placeSave->authors["type"] != "clipboard")
if (placeSave->authors.size() && (Client::Ref().IsAuthorsEmpty() || placeSave->authors["type"] != "clipboard"))
Client::Ref().MergeStampAuthorInfo(placeSave->authors);
}
}
Expand Down

0 comments on commit 971e405

Please sign in to comment.