summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-13 01:04:05 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-13 01:04:05 +0300
commitea0b61e18f36f28806940b00a2cddaef912c3340 (patch)
tree616205f44832d4ced4fc0b50b650eedb0fbf435c /src/gui/widgets
parent814e88e5ca69bc54837be27429dbf42dd41f7ac6 (diff)
downloadmanaplus-ea0b61e18f36f28806940b00a2cddaef912c3340.tar.gz
manaplus-ea0b61e18f36f28806940b00a2cddaef912c3340.tar.bz2
manaplus-ea0b61e18f36f28806940b00a2cddaef912c3340.tar.xz
manaplus-ea0b61e18f36f28806940b00a2cddaef912c3340.zip
Move actor type into separate file.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/avatarlistbox.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/widgets/avatarlistbox.cpp b/src/gui/widgets/avatarlistbox.cpp
index 2e8e27960..130245801 100644
--- a/src/gui/widgets/avatarlistbox.cpp
+++ b/src/gui/widgets/avatarlistbox.cpp
@@ -347,7 +347,7 @@ void AvatarListBox::mousePressed(MouseEvent &event)
if (ava->getType() == AVATAR_PLAYER)
{
const Being *const being = actorManager->findBeingByName(
- ava->getName(), Being::PLAYER);
+ ava->getName(), ActorType::PLAYER);
if (being)
actorManager->heal(being);
}
@@ -366,8 +366,8 @@ void AvatarListBox::mousePressed(MouseEvent &event)
const Avatar *const avatar = model->getAvatarAt(selected);
if (avatar)
{
- const Being *const being = actorManager
- ->findBeingByName(avatar->getName(), Being::PLAYER);
+ const Being *const being = actorManager->findBeingByName(
+ avatar->getName(), ActorType::PLAYER);
if (being)
viewport->showPopup(being);
else