diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-07-06 01:30:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-07-06 13:08:48 +0300 |
commit | 7cc864e68935b035d69d68aba2f8ad38ce275d5a (patch) | |
tree | cb7718bab03b0249f3cf034c9490c8aa3c919fb7 /src/spellmanager.cpp | |
parent | 55cfc856a68604c93779ed8017f052b54b2e7c03 (diff) | |
download | ManaVerse-7cc864e68935b035d69d68aba2f8ad38ce275d5a.tar.gz ManaVerse-7cc864e68935b035d69d68aba2f8ad38ce275d5a.tar.bz2 ManaVerse-7cc864e68935b035d69d68aba2f8ad38ce275d5a.tar.xz ManaVerse-7cc864e68935b035d69d68aba2f8ad38ce275d5a.zip |
fix code style and some minor issues.
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) |