diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-04 21:24:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-04 21:39:07 +0300 |
commit | 2521a791d764920c194e8fe299110e98dc2e5ab3 (patch) | |
tree | 9894d9cabae064e3ab8ab0d43864c152079a750d /src/gui | |
parent | 9706e377c799d4b2c0a9f88c8ba6768bf2ea858c (diff) | |
download | manaplus-2521a791d764920c194e8fe299110e98dc2e5ab3.tar.gz manaplus-2521a791d764920c194e8fe299110e98dc2e5ab3.tar.bz2 manaplus-2521a791d764920c194e8fe299110e98dc2e5ab3.tar.xz manaplus-2521a791d764920c194e8fe299110e98dc2e5ab3.zip |
Remove getter getSprite from compoundsprite.
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()); |