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