diff options
Diffstat (limited to 'src')
-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; |