summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-28 20:08:50 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-28 20:08:50 +0300
commit5a9bea697e5c5585b40b3788eaa607158d5fed8e (patch)
tree4e27797c23c4062a939d09b6a60b7ac07e83da6e /src
parent6b2addaade053d347816d5d61dff53e38ff94e83 (diff)
downloadmanaplus-5a9bea697e5c5585b40b3788eaa607158d5fed8e.tar.gz
manaplus-5a9bea697e5c5585b40b3788eaa607158d5fed8e.tar.bz2
manaplus-5a9bea697e5c5585b40b3788eaa607158d5fed8e.tar.xz
manaplus-5a9bea697e5c5585b40b3788eaa607158d5fed8e.zip
Fix compilation warning.
Diffstat (limited to 'src')
-rw-r--r--src/spellmanager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/spellmanager.cpp b/src/spellmanager.cpp
index 9ad985a4a..4ffcf8482 100644
--- a/src/spellmanager.cpp
+++ b/src/spellmanager.cpp
@@ -94,7 +94,8 @@ bool SpellManager::addSpell(TextCommand *const spell)
return false;
const int id = spell->getId();
- if (id < 0 || id >= SPELL_SHORTCUT_ITEMS * SPELL_SHORTCUT_TABS)
+ if (id < 0 || id >= static_cast<int>(SPELL_SHORTCUT_ITEMS
+ * SPELL_SHORTCUT_TABS))
{
delete spell;
return false;