don't add null stuff when loading old stamps without author info

This commit is contained in:
jacob1 2017-07-16 15:52:18 -04:00
parent ad5a2a0972
commit 971e405462

View File

@ -331,7 +331,7 @@ void GameController::PlaceSave(ui::Point position)
{ {
gameModel->SetPaused(placeSave->paused | gameModel->GetPaused()); gameModel->SetPaused(placeSave->paused | gameModel->GetPaused());
// if this is a clipboard and there is no author info, don't do anything // 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); Client::Ref().MergeStampAuthorInfo(placeSave->authors);
} }
} }