diff options
Diffstat (limited to 'src/being')
-rw-r--r-- | src/being/localplayer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp index 90a2e9efa..0bc0e51ed 100644 --- a/src/being/localplayer.cpp +++ b/src/being/localplayer.cpp @@ -2555,9 +2555,9 @@ void LocalPlayer::setRealPos(const int x, const int y) return; SpecialLayer *const layer = mMap->getTempLayer(); - bool cacheUpdated(false); if (layer) { + bool cacheUpdated(false); if ((mCrossX || mCrossY) && layer->getTile(mCrossX, mCrossY) && layer->getTile(mCrossX, mCrossY)->getType() == MapItemType::CROSS) |