From 5a9bea697e5c5585b40b3788eaa607158d5fed8e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 28 Oct 2014 20:08:50 +0300 Subject: Fix compilation warning. --- src/spellmanager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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(SPELL_SHORTCUT_ITEMS + * SPELL_SHORTCUT_TABS)) { delete spell; return false; -- cgit v1.2.3-70-g09d2