summaryrefslogtreecommitdiff
path: root/src/gui/npcdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-24 18:29:30 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-24 18:30:16 +0300
commita316d537dce50f4b4e1e10f5c26a7851baddbd8b (patch)
tree078de355216db6dab67df9575402cdba7d537dbd /src/gui/npcdialog.cpp
parentcb00b6fe126afe5fff8fc7ff491fda6003ea68f2 (diff)
downloadmanaplus-a316d537dce50f4b4e1e10f5c26a7851baddbd8b.tar.gz
manaplus-a316d537dce50f4b4e1e10f5c26a7851baddbd8b.tar.bz2
manaplus-a316d537dce50f4b4e1e10f5c26a7851baddbd8b.tar.xz
manaplus-a316d537dce50f4b4e1e10f5c26a7851baddbd8b.zip
Small style changes.
Also fix overloaded methods visibility.
Diffstat (limited to 'src/gui/npcdialog.cpp')
-rw-r--r--src/gui/npcdialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/npcdialog.cpp b/src/gui/npcdialog.cpp
index b47e78626..166cef5b1 100644
--- a/src/gui/npcdialog.cpp
+++ b/src/gui/npcdialog.cpp
@@ -695,7 +695,7 @@ void NpcDialog::showAvatar(int avatarId)
delete mAvatarBeing;
mAvatarBeing = new Being(0, ActorSprite::NPC, avatarId, nullptr);
mPlayerBox->setPlayer(mAvatarBeing);
- if (mAvatarBeing && !mAvatarBeing->empty())
+ if (!mAvatarBeing->empty())
{
mAvatarBeing->logic();
Sprite *sprite = mAvatarBeing->getSprite(0);