summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-01-06 15:34:35 +0300
committerAndrei Karas <akaras@inbox.ru>2017-01-06 15:34:35 +0300
commit275ec929279e8a873ce971a3632aeb474e87955e (patch)
treeca605cf3417f0bedbf18172a2827e842ba3175e1 /src/resources
parentf81c4d4c9feeddbf21686eef21b328b1f05ce503 (diff)
downloadmv-275ec929279e8a873ce971a3632aeb474e87955e.tar.gz
mv-275ec929279e8a873ce971a3632aeb474e87955e.tar.bz2
mv-275ec929279e8a873ce971a3632aeb474e87955e.tar.xz
mv-275ec929279e8a873ce971a3632aeb474e87955e.zip
Add missing values into SpecialLayer initialisation.
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/map/speciallayer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/resources/map/speciallayer.cpp b/src/resources/map/speciallayer.cpp
index f0b09b1cf..4e826dc42 100644
--- a/src/resources/map/speciallayer.cpp
+++ b/src/resources/map/speciallayer.cpp
@@ -41,6 +41,7 @@ SpecialLayer::SpecialLayer(const std::string &name,
mHeight(height)
{
std::fill_n(mTiles, mWidth * mHeight, static_cast<MapItem*>(nullptr));
+ std::fill_n(mCache, mWidth * mHeight, 10000);
}
SpecialLayer::~SpecialLayer()