diff --git a/src/gui/game/GameController.cpp b/src/gui/game/GameController.cpp
index 5db98471f..11497e417 100644
--- a/src/gui/game/GameController.cpp
+++ b/src/gui/game/GameController.cpp
@@ -1061,6 +1061,11 @@ void GameController::SetActiveTool(int toolSelection, Tool * tool)
((PropertyTool *)tool)->OpenWindow(gameModel->GetSimulation());
}
+void GameController::SetLastTool(Tool * tool)
+{
+ gameModel->SetLastTool(tool);
+}
+
int GameController::GetReplaceModeFlags()
{
return gameModel->GetSimulation()->replaceModeFlags;
diff --git a/src/gui/game/GameController.h b/src/gui/game/GameController.h
index 127105384..c3fb71274 100644
--- a/src/gui/game/GameController.h
+++ b/src/gui/game/GameController.h
@@ -105,6 +105,7 @@ public:
std::vector