summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
{