summaryrefslogtreecommitdiff
path: root/src/game/GameController.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/GameController.cpp')
-rw-r--r--src/game/GameController.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/GameController.cpp b/src/game/GameController.cpp
index 9580d2c..dff6c18 100644
--- a/src/game/GameController.cpp
+++ b/src/game/GameController.cpp
@@ -320,6 +320,8 @@ void GameController::StampRegion(ui::Point point1, ui::Point point2)
newSave = gameModel->GetSimulation()->Save(point1.X, point1.Y, point2.X, point2.Y);
if(newSave)
gameModel->AddStamp(newSave);
+ else
+ new ErrorMessage("Could not create stamp", "Error generating save file");
}
void GameController::CopyRegion(ui::Point point1, ui::Point point2)