diff options
Diffstat (limited to 'src/spellmanager.cpp')
-rw-r--r-- | src/spellmanager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/spellmanager.cpp b/src/spellmanager.cpp index 83fb746a7..23eb90ad1 100644 --- a/src/spellmanager.cpp +++ b/src/spellmanager.cpp @@ -408,13 +408,13 @@ void SpellManager::swap(const int id1, const int id2) spell2->setId(tmp); // swap in vector - const int sz = SPELL_SHORTCUT_ITEMS * SPELL_SHORTCUT_TABS; - for (unsigned f = 0; f < sz; f++) + const size_t sz = SPELL_SHORTCUT_ITEMS * SPELL_SHORTCUT_TABS; + for (size_t f = 0; f < sz; f++) { const TextCommand *const spellA = mSpellsVector[f]; if (spellA == spell1) { - for (unsigned d = 0; d < sz; d++) + for (size_t d = 0; d < sz; d++) { const TextCommand *const spellB = mSpellsVector[d]; if (spellB == spell2) |