summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-04 21:24:29 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-04 21:39:07 +0300
commit2521a791d764920c194e8fe299110e98dc2e5ab3 (patch)
tree9894d9cabae064e3ab8ab0d43864c152079a750d /src/gui/windows
parent9706e377c799d4b2c0a9f88c8ba6768bf2ea858c (diff)
downloadplus-2521a791d764920c194e8fe299110e98dc2e5ab3.tar.gz
plus-2521a791d764920c194e8fe299110e98dc2e5ab3.tar.bz2
plus-2521a791d764920c194e8fe299110e98dc2e5ab3.tar.xz
plus-2521a791d764920c194e8fe299110e98dc2e5ab3.zip
Remove getter getSprite from compoundsprite.
Diffstat (limited to 'src/gui/windows')
-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());