diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-08-09 00:26:41 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-08-09 00:26:41 +0300 |
commit | 9c46394f54db8c1b9e357ad555f3db96251a616d (patch) | |
tree | b1ab9e8ebec6d9b4d91a9b705b6cc0c3682a5fac /src/being/localplayer.cpp | |
parent | e0d14cf8d3c809a0a5291823d3a962a4835a8f6e (diff) | |
download | plus-9c46394f54db8c1b9e357ad555f3db96251a616d.tar.gz plus-9c46394f54db8c1b9e357ad555f3db96251a616d.tar.bz2 plus-9c46394f54db8c1b9e357ad555f3db96251a616d.tar.xz plus-9c46394f54db8c1b9e357ad555f3db96251a616d.zip |
Add some missing checks to being found by paranucker.
Diffstat (limited to 'src/being/localplayer.cpp')
-rw-r--r-- | src/being/localplayer.cpp | 9 |
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()) |