summaryrefslogtreecommitdiff
path: root/src/spellmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-08 22:48:11 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-08 22:48:11 +0300
commit767b8400fb086616616a298655f0bc2eaf239256 (patch)
tree9d82215887c79c596127506f50daf2ed31c23d8c /src/spellmanager.cpp
parentcd0de3bd2668294ab3174d3b5f032fefc25fa0e8 (diff)
downloadplus-767b8400fb086616616a298655f0bc2eaf239256.tar.gz
plus-767b8400fb086616616a298655f0bc2eaf239256.tar.bz2
plus-767b8400fb086616616a298655f0bc2eaf239256.tar.xz
plus-767b8400fb086616616a298655f0bc2eaf239256.zip
Fix code style in other files.
Diffstat (limited to 'src/spellmanager.cpp')
-rw-r--r--src/spellmanager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/spellmanager.cpp b/src/spellmanager.cpp
index 0db577a48..aaf7ad302 100644
--- a/src/spellmanager.cpp
+++ b/src/spellmanager.cpp
@@ -52,7 +52,7 @@ SpellManager::~SpellManager()
TextCommand* SpellManager::getSpell(const int spellId) const
{
- if (spellId < 0 || static_cast<unsigned int>(spellId) >= mSpells.size())
+ if (spellId < 0 || static_cast<size_t>(spellId) >= mSpells.size())
return nullptr;
const std::map<unsigned int, TextCommand*>::const_iterator
@@ -142,8 +142,8 @@ void SpellManager::invoke(const int spellId) const
|| (Net::getPlayerHandler()->canUseMagic()
&& PlayerInfo::getSkillLevel(SKILL_MAGIC)
>= static_cast<signed>(spell->getBaseLvl())
- && PlayerInfo::getSkillLevel(
- spell->getSchool()) >= static_cast<signed>(spell->getSchoolLvl())
+ && PlayerInfo::getSkillLevel(static_cast<int>(
+ spell->getSchool())) >= static_cast<signed>(spell->getSchoolLvl())
&& PlayerInfo::getAttribute(PlayerInfo::MP) >= spell->getMana()))
{
const Being *const target = player_node->getTarget();