From 2492b561385859b7ef76fe816a8dc845f0b9bd09 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 7 Feb 2016 01:53:51 +0300 Subject: Fix some casts between signed and unsigned in some files. --- src/spellmanager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/spellmanager.cpp') 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(spell->getBaseLvl()) && PlayerInfo::getSkillLevel(static_cast( spell->getSchool())) >= static_cast(spell->getSchoolLvl()) - && PlayerInfo::getAttribute(Attributes::MP) >= spell->getMana()) + && PlayerInfo::getAttribute(Attributes::MP) + >= static_cast(spell->getMana())) ) #endif { -- cgit v1.2.3-60-g2f50