summaryrefslogtreecommitdiff
path: root/src/resources/map/maplayer_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/map/maplayer_unittest.cc')
-rw-r--r--src/resources/map/maplayer_unittest.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/resources/map/maplayer_unittest.cc b/src/resources/map/maplayer_unittest.cc
index 103d019cd..bd58d998c 100644
--- a/src/resources/map/maplayer_unittest.cc
+++ b/src/resources/map/maplayer_unittest.cc
@@ -2117,8 +2117,14 @@ TEST_CASE("MapLayer drawSpecialLayer (tempLayer)")
layer->setTempLayer(map->getTempLayer());
TileInfo *const tiles = layer->getTiles();
specialLayer = map->getTempLayer();
+ const int *const cache = specialLayer->getCache();
+ REQUIRE(cache[0] == 10000);
+ REQUIRE(cache[1] == 10000);
+
specialLayer->setTile(1, 0, MapItemType::ARROW_UP);
specialLayer->updateCache();
+ REQUIRE(cache[0] == 0);
+ REQUIRE(cache[1] == 10000);
layer->drawSpecialLayer(mock,
0,