From 2521a791d764920c194e8fe299110e98dc2e5ab3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 4 Mar 2016 21:24:29 +0300 Subject: Remove getter getSprite from compoundsprite. --- src/gui/windows/npcdialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/windows/npcdialog.cpp') 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()); -- cgit v1.2.3-70-g09d2