diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-01-15 01:07:47 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-01-15 02:05:50 +0200 |
commit | e2150d04662a4ba8b5304dabcc74be0bacded5b7 (patch) | |
tree | cbeb05c2f056a7d5ac4a08e7b80799b5cfd4785b /src/being.cpp | |
parent | edda37acb9d66f2751ef712c83dced62428fa685 (diff) | |
download | manaverse-e2150d04662a4ba8b5304dabcc74be0bacded5b7.tar.gz manaverse-e2150d04662a4ba8b5304dabcc74be0bacded5b7.tar.bz2 manaverse-e2150d04662a4ba8b5304dabcc74be0bacded5b7.tar.xz manaverse-e2150d04662a4ba8b5304dabcc74be0bacded5b7.zip |
Fix code style, apply some fixes after checking with cppcheck from git.
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/being.cpp b/src/being.cpp index 4f31e402c..30117964f 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -1915,12 +1915,12 @@ void Being::recalcSpritesOrder() } // logger->log("preparation end"); - int lastRemap = 0; + int lastRemap = -1; int cnt = 0; while (cnt < 15 && lastRemap >= 0) { - int lastRemap = -1; + lastRemap = -1; cnt ++; // logger->log("iteration"); @@ -1968,7 +1968,7 @@ void Being::recalcSpritesOrder() searchSlotValueItr(it, idx, slotRemap, reorder); if (it != slotRemap.end()) { - it ++; + ++ it; if (it != slotRemap.end()) slotRemap.insert(it, val); else |