summaryrefslogtreecommitdiff
path: root/src/gui/windows/npcdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/npcdialog.cpp')
-rw-r--r--src/gui/windows/npcdialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/windows/npcdialog.cpp b/src/gui/windows/npcdialog.cpp
index 452567b94..7f34d9f6e 100644
--- a/src/gui/windows/npcdialog.cpp
+++ b/src/gui/windows/npcdialog.cpp
@@ -1161,7 +1161,7 @@ void NpcDialog::showAvatar(const BeingTypeId avatarId)
mPlayerBox->setWidth(width + pad2);
mPlayerBox->setHeight(info->getHeight() + pad2);
}
- const Sprite *const sprite = mAvatarBeing->getSprite(0);
+ const Sprite *const sprite = mAvatarBeing->mSprites[0];
if (sprite && !width)
{
mPlayerBox->setWidth(sprite->getWidth() + pad2);
@@ -1208,7 +1208,7 @@ void NpcDialog::logic()
mAvatarBeing->logic();
if (mPlayerBox->getWidth() < CAST_S32(3 * getPadding()))
{
- const Sprite *const sprite = mAvatarBeing->getSprite(0);
+ const Sprite *const sprite = mAvatarBeing->mSprites[0];
if (sprite)
{
mPlayerBox->setWidth(sprite->getWidth() + 2 * getPadding());