summaryrefslogtreecommitdiff
path: root/src/spellmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-18 22:39:29 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-18 22:39:29 +0300
commit6419386c4c382753509425826ee609dd07d4ae72 (patch)
treef5f6d54f86a86a21a8145891797a561f5bb8e8d8 /src/spellmanager.cpp
parent78744020528ef6231e1606bbe2e8c53011c77935 (diff)
downloadmanaverse-6419386c4c382753509425826ee609dd07d4ae72.tar.gz
manaverse-6419386c4c382753509425826ee609dd07d4ae72.tar.bz2
manaverse-6419386c4c382753509425826ee609dd07d4ae72.tar.xz
manaverse-6419386c4c382753509425826ee609dd07d4ae72.zip
add const to other files.
Diffstat (limited to 'src/spellmanager.cpp')
-rw-r--r--src/spellmanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/spellmanager.cpp b/src/spellmanager.cpp
index b72d8ec40..2038c478a 100644
--- a/src/spellmanager.cpp
+++ b/src/spellmanager.cpp
@@ -55,7 +55,7 @@ TextCommand* SpellManager::getSpell(const int spellId) const
if (spellId < 0 || static_cast<unsigned int>(spellId) >= mSpells.size())
return nullptr;
- std::map<unsigned int, TextCommand*>::const_iterator
+ const std::map<unsigned int, TextCommand*>::const_iterator
it = mSpells.find(spellId);
return it != mSpells.end() ? (*it).second : nullptr;
@@ -404,7 +404,7 @@ void SpellManager::swap(const int id1, const int id2)
mSpells[id2] = spell1;
// swap id
- int tmp = spell1->getId();
+ const int tmp = spell1->getId();
spell1->setId(spell2->getId());
spell2->setId(tmp);