diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-04-12 23:32:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-04-20 12:42:11 +0300 |
commit | b4dcdb89cfe1b59bda35ae0cb60148dc7727fec2 (patch) | |
tree | 32f46cea527df4bb1a5d84769d2275db303a754a | |
parent | c6731387783fc7ce5c3665df4bbd431584f1611e (diff) | |
download | plus-b4dcdb89cfe1b59bda35ae0cb60148dc7727fec2.tar.gz plus-b4dcdb89cfe1b59bda35ae0cb60148dc7727fec2.tar.bz2 plus-b4dcdb89cfe1b59bda35ae0cb60148dc7727fec2.tar.xz plus-b4dcdb89cfe1b59bda35ae0cb60148dc7727fec2.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 e8c218292..6d1cc9167 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -3588,6 +3588,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) { |