summaryrefslogtreecommitdiff
path: root/src/being/localplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-01-06 20:19:20 +0300
committerAndrei Karas <akaras@inbox.ru>2017-01-06 20:19:20 +0300
commit030beaba34912a9249b9219b43c7bdc1359859e6 (patch)
tree40e4cef8856bdc9e3401eed98dc69a27c758dca2 /src/being/localplayer.cpp
parentaaacae5e2907e21ff7c0505fd4e48442ac809136 (diff)
downloadmanaverse-030beaba34912a9249b9219b43c7bdc1359859e6.tar.gz
manaverse-030beaba34912a9249b9219b43c7bdc1359859e6.tar.bz2
manaverse-030beaba34912a9249b9219b43c7bdc1359859e6.tar.xz
manaverse-030beaba34912a9249b9219b43c7bdc1359859e6.zip
Fix code style.
Diffstat (limited to 'src/being/localplayer.cpp')
-rw-r--r--src/being/localplayer.cpp2
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)