diff options
Diffstat (limited to 'src/gui/npcdialog.cpp')
-rw-r--r-- | src/gui/npcdialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/npcdialog.cpp b/src/gui/npcdialog.cpp index 71a884d88..aa86ffeec 100644 --- a/src/gui/npcdialog.cpp +++ b/src/gui/npcdialog.cpp @@ -697,7 +697,7 @@ void NpcDialog::setAvatarAction(int actionId) { Being *being = mPlayerBox->getBeing(); if (being) - being->setAction((Being::Action)actionId); + being->setAction(static_cast<Being::Action>(actionId)); } void NpcDialog::logic() @@ -706,7 +706,7 @@ void NpcDialog::logic() if (mShowAvatar && mAvatarBeing) { mAvatarBeing->logic(); - if (mPlayerBox->getWidth() < (signed)(3 * getPadding())) + if (mPlayerBox->getWidth() < static_cast<signed>(3 * getPadding())) { Sprite *sprite = mAvatarBeing->getSprite(0); if (sprite) |