aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TileDecayCommand.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/TileDecayCommand.cpp b/TileDecayCommand.cpp
index 9497121..e986cc5 100644
--- a/TileDecayCommand.cpp
+++ b/TileDecayCommand.cpp
@@ -5,6 +5,8 @@ void TileDecayCommand::execute(unsigned int x, unsigned int y) {
Museum & museum = this->get_museum();
if (x >= museum.canvas.data.columns) return;
if (y >= museum.canvas.data.rows) return;
- museum.canvas.get_tile(x, y).step(nullptr);
+ Tile & tile = museum.canvas.get_tile(x, y);
+ tile.step(nullptr);
+ tile.update();
}