diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-07 01:53:51 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-07 01:53:51 +0300 |
commit | 2492b561385859b7ef76fe816a8dc845f0b9bd09 (patch) | |
tree | 62633f8cd7c027c2a8e1bae61264a79394aeb751 /src/spellmanager.cpp | |
parent | ce14a018a6f66aa1309ebe71a8217082d83cd0da (diff) | |
download | manaplus-2492b561385859b7ef76fe816a8dc845f0b9bd09.tar.gz manaplus-2492b561385859b7ef76fe816a8dc845f0b9bd09.tar.bz2 manaplus-2492b561385859b7ef76fe816a8dc845f0b9bd09.tar.xz manaplus-2492b561385859b7ef76fe816a8dc845f0b9bd09.zip |
Fix some casts between signed and unsigned in some files.
Diffstat (limited to 'src/spellmanager.cpp')
-rw-r--r-- | src/spellmanager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/spellmanager.cpp b/src/spellmanager.cpp index bd8c75c19..d9b8e757e 100644 --- a/src/spellmanager.cpp +++ b/src/spellmanager.cpp @@ -143,7 +143,8 @@ void SpellManager::invoke(const int spellId) const >= static_cast<signed>(spell->getBaseLvl()) && PlayerInfo::getSkillLevel(static_cast<int>( spell->getSchool())) >= static_cast<signed>(spell->getSchoolLvl()) - && PlayerInfo::getAttribute(Attributes::MP) >= spell->getMana()) + && PlayerInfo::getAttribute(Attributes::MP) + >= static_cast<int>(spell->getMana())) ) #endif { |