summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-29 23:24:05 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-29 23:24:05 +0300
commitc593adb7fb0dffc62f1311e6c52f25bfafcdf0f4 (patch)
treefc89a0dde74c24d2876cf5833ff1d42d3ffd8c51 /src/gui
parente9b375927f271808d507c5a95443d460bbd6ce92 (diff)
downloadmv-c593adb7fb0dffc62f1311e6c52f25bfafcdf0f4.tar.gz
mv-c593adb7fb0dffc62f1311e6c52f25bfafcdf0f4.tar.bz2
mv-c593adb7fb0dffc62f1311e6c52f25bfafcdf0f4.tar.xz
mv-c593adb7fb0dffc62f1311e6c52f25bfafcdf0f4.zip
Convert BeingAction enum into strong typed enum.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/windows/charcreatedialog.cpp2
-rw-r--r--src/gui/windows/npcdialog.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/windows/charcreatedialog.cpp b/src/gui/windows/charcreatedialog.cpp
index f37749756..8ccd127c6 100644
--- a/src/gui/windows/charcreatedialog.cpp
+++ b/src/gui/windows/charcreatedialog.cpp
@@ -55,7 +55,7 @@
#undef ERROR
-static const BeingAction::Action actions[] =
+static const BeingActionT actions[] =
{
BeingAction::STAND,
BeingAction::SIT,
diff --git a/src/gui/windows/npcdialog.cpp b/src/gui/windows/npcdialog.cpp
index ebc716d0f..de485d6f1 100644
--- a/src/gui/windows/npcdialog.cpp
+++ b/src/gui/windows/npcdialog.cpp
@@ -920,7 +920,7 @@ void NpcDialog::setAvatarAction(const int actionId)
{
Being *const being = mPlayerBox->getBeing();
if (being)
- being->setAction(static_cast<BeingAction::Action>(actionId), 0);
+ being->setAction(static_cast<BeingActionT>(actionId), 0);
}
void NpcDialog::logic()