summaryrefslogtreecommitdiff
path: root/src/map.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-01-13 22:24:59 +0300
committerAndrei Karas <akaras@inbox.ru>2012-01-13 23:15:55 +0300
commitbf1a006a34ba30143c00be899332acedef29575b (patch)
tree996b3d75d1dd4903b3377d2f9e822b6937d45511 /src/map.h
parentd9c0a036a5d480c615d866bf98893906b1e7efab (diff)
downloadmv-bf1a006a34ba30143c00be899332acedef29575b.tar.gz
mv-bf1a006a34ba30143c00be899332acedef29575b.tar.bz2
mv-bf1a006a34ba30143c00be899332acedef29575b.tar.xz
mv-bf1a006a34ba30143c00be899332acedef29575b.zip
Fix possible incorrect memory access.
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map.h b/src/map.h
index 0f2f2bf47..db8b092de 100644
--- a/src/map.h
+++ b/src/map.h
@@ -498,6 +498,9 @@ class Map : public Properties, public ConfigListener
void redrawMap();
+ bool empty()
+ { return mLayers.empty(); }
+
protected:
friend class Actor;
friend class Minimap;