diff options
Diffstat (limited to 'src/gui/npcdialog.cpp')
-rw-r--r-- | src/gui/npcdialog.cpp | 2 |
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); |