diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-07-17 23:26:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-07-17 23:26:59 +0300 |
commit | 7e0a97d2521b9ce57003176e82a0b5564aa003c2 (patch) | |
tree | 5b2cfe1afe09bea1063f783050c1fb549daee76d /src/actorspritemanager.cpp | |
parent | f68cbf700a99f2f184715a5b8025bcb4b6525391 (diff) | |
download | ManaVerse-7e0a97d2521b9ce57003176e82a0b5564aa003c2.tar.gz ManaVerse-7e0a97d2521b9ce57003176e82a0b5564aa003c2.tar.bz2 ManaVerse-7e0a97d2521b9ce57003176e82a0b5564aa003c2.tar.xz ManaVerse-7e0a97d2521b9ce57003176e82a0b5564aa003c2.zip |
Fix more code style and additional warnings.
Diffstat (limited to 'src/actorspritemanager.cpp')
-rw-r--r-- | src/actorspritemanager.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/actorspritemanager.cpp b/src/actorspritemanager.cpp index 8cdede262..9d933ad72 100644 --- a/src/actorspritemanager.cpp +++ b/src/actorspritemanager.cpp @@ -1136,8 +1136,10 @@ void ActorSpriteManager::heal(Being* target) } } // magic levels < 2 - else if (PlayerInfo::getStatEffective(340) < 2 - || PlayerInfo::getStatEffective(341) < 2) + else if (PlayerInfo::getStatEffective( + static_cast<PlayerInfo::Attribute>(340)) < 2 + || PlayerInfo::getStatEffective( + static_cast<PlayerInfo::Attribute>(341)) < 2) { if (PlayerInfo::getAttribute(PlayerInfo::MP) >= 6) { |