diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-29 16:19:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-29 16:19:21 +0300 |
commit | 7bdb50605562e47f1d6ae134881c09bd42293be5 (patch) | |
tree | 935228722e4eb48f5856abec53be1ec985a0b9d6 /src/gui/windows/npcdialog.cpp | |
parent | 0f9ec2061c4ad6157c3186f1cab9c4d8558980b5 (diff) | |
download | mv-7bdb50605562e47f1d6ae134881c09bd42293be5.tar.gz mv-7bdb50605562e47f1d6ae134881c09bd42293be5.tar.bz2 mv-7bdb50605562e47f1d6ae134881c09bd42293be5.tar.xz mv-7bdb50605562e47f1d6ae134881c09bd42293be5.zip |
Add strong typed int type BeingTypeId.
Diffstat (limited to 'src/gui/windows/npcdialog.cpp')
-rw-r--r-- | src/gui/windows/npcdialog.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/windows/npcdialog.cpp b/src/gui/windows/npcdialog.cpp index c8ccd482e..c60cbd9b4 100644 --- a/src/gui/windows/npcdialog.cpp +++ b/src/gui/windows/npcdialog.cpp @@ -205,7 +205,7 @@ void NpcDialog::postInit() if (being) { showAvatar(NPCDB::getAvatarFor(fromInt( - being->getSubType(), BeingId))); + being->getSubType(), BeingTypeId))); setCaption(being->getName()); } } @@ -862,9 +862,9 @@ void NpcDialog::restoreCamera() mCameraMode = -1; } -void NpcDialog::showAvatar(const BeingId avatarId) +void NpcDialog::showAvatar(const BeingTypeId avatarId) { - const bool needShow = (avatarId != BeingId_zero); + const bool needShow = (avatarId != BeingTypeId_zero); if (needShow) { delete mAvatarBeing; |