diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-28 20:08:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-28 20:08:50 +0300 |
commit | 5a9bea697e5c5585b40b3788eaa607158d5fed8e (patch) | |
tree | 4e27797c23c4062a939d09b6a60b7ac07e83da6e | |
parent | 6b2addaade053d347816d5d61dff53e38ff94e83 (diff) | |
download | manaplus-5a9bea697e5c5585b40b3788eaa607158d5fed8e.tar.gz manaplus-5a9bea697e5c5585b40b3788eaa607158d5fed8e.tar.bz2 manaplus-5a9bea697e5c5585b40b3788eaa607158d5fed8e.tar.xz manaplus-5a9bea697e5c5585b40b3788eaa607158d5fed8e.zip |
Fix compilation warning.
-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 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; |