summaryrefslogtreecommitdiff
path: root/src/being/localplayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/being/localplayer.cpp')
-rw-r--r--src/being/localplayer.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp
index af3f3df03..b7d965a43 100644
--- a/src/being/localplayer.cpp
+++ b/src/being/localplayer.cpp
@@ -333,10 +333,11 @@ void LocalPlayer::slowLogic()
weightNoticeTime = 0;
}
- if (!serverFeatures->havePlayerStatusUpdate()
- && mEnableAdvert
- && !mBlockAdvert
- && mAdvertTime < cur_time)
+ if (serverFeatures &&
+ !serverFeatures->havePlayerStatusUpdate() &&
+ mEnableAdvert &&
+ !mBlockAdvert &&
+ mAdvertTime < cur_time)
{
uint8_t smile = BeingFlag::SPECIAL;
if (mTradebot && shopWindow && !shopWindow->isShopEmpty())