summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-04-12 23:32:00 +0300
committerAndrei Karas <akaras@inbox.ru>2012-04-12 23:32:00 +0300
commitf1921f516280f1e64bf550e7ab0c5326cac5eb6d (patch)
tree6c9a5990038c5658ce5c5c46c51bdd632e971bf3 /src/localplayer.cpp
parentbfeeb73c4fda81f6a94e16a66f374fe14fe591c0 (diff)
downloadplus-f1921f516280f1e64bf550e7ab0c5326cac5eb6d.tar.gz
plus-f1921f516280f1e64bf550e7ab0c5326cac5eb6d.tar.bz2
plus-f1921f516280f1e64bf550e7ab0c5326cac5eb6d.tar.xz
plus-f1921f516280f1e64bf550e7ab0c5326cac5eb6d.zip
Fix incorrect load order.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 3cbe59329..9dc23a4c7 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -3590,6 +3590,9 @@ void LocalPlayer::updateCoords()
Being::updateCoords();
const Vector &playerPos = getPosition();
+ // probably map not loaded.
+ if (!playerPos.x || !playerPos.y)
+ return;
if (mX != mOldTileX || mY != mOldTileY)
{