diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-04-12 23:32:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-04-12 23:32:00 +0300 |
commit | f1921f516280f1e64bf550e7ab0c5326cac5eb6d (patch) | |
tree | 6c9a5990038c5658ce5c5c46c51bdd632e971bf3 | |
parent | bfeeb73c4fda81f6a94e16a66f374fe14fe591c0 (diff) | |
download | mv-f1921f516280f1e64bf550e7ab0c5326cac5eb6d.tar.gz mv-f1921f516280f1e64bf550e7ab0c5326cac5eb6d.tar.bz2 mv-f1921f516280f1e64bf550e7ab0c5326cac5eb6d.tar.xz mv-f1921f516280f1e64bf550e7ab0c5326cac5eb6d.zip |
Fix incorrect load order.
-rw-r--r-- | src/localplayer.cpp | 3 |
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) { |