From 55b31d6f0e49b852a35ede82d6642a19010972f6 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Sat, 5 Aug 2017 21:47:39 -0400 Subject: [PATCH] my mod uses -1 for this --- src/gui/game/GameModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/game/GameModel.cpp b/src/gui/game/GameModel.cpp index 8d3fa5c3b..9e110aac2 100644 --- a/src/gui/game/GameModel.cpp +++ b/src/gui/game/GameModel.cpp @@ -664,7 +664,7 @@ void GameModel::SetSave(SaveInfo * newSave) } // This save was probably just created, and we didn't know the ID when creating it // Update with the proper ID - else if (saveData->authors.get("id", -1) == 0) + else if (saveData->authors.get("id", -1) == 0 || saveData->authors.get("id", -1) == -1) { saveData->authors["id"] = newSave->id; }