From f1921f516280f1e64bf550e7ab0c5326cac5eb6d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 12 Apr 2012 23:32:00 +0300 Subject: Fix incorrect load order. --- src/localplayer.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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) { -- cgit v1.2.3-70-g09d2