summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-18 02:51:48 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-18 02:51:48 +0300
commitaf90f5ef81c95cdec378377c3100a4417e0a1708 (patch)
treea700421e464e790216580e550decf42956ad5de6 /src/map.cpp
parentf6eb325bae9ae993c59bd0b282aef8707c7409f7 (diff)
downloadmanaverse-af90f5ef81c95cdec378377c3100a4417e0a1708.tar.gz
manaverse-af90f5ef81c95cdec378377c3100a4417e0a1708.tar.bz2
manaverse-af90f5ef81c95cdec378377c3100a4417e0a1708.tar.xz
manaverse-af90f5ef81c95cdec378377c3100a4417e0a1708.zip
Fix some missing initialisations and memory leakss.
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map.cpp b/src/map.cpp
index f9750f217..f8c4e007e 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -621,7 +621,8 @@ Map::Map(int width, int height, int tileWidth, int tileHeight):
mDrawX(-1),
mDrawY(-1),
mDrawScrollX(-1),
- mDrawScrollY(-1)
+ mDrawScrollY(-1),
+ mRedrawMap(true)
{
const int size = mWidth * mHeight;