From e2150d04662a4ba8b5304dabcc74be0bacded5b7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 15 Jan 2011 01:07:47 +0200 Subject: Fix code style, apply some fixes after checking with cppcheck from git. --- src/being.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/being.cpp') 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 -- cgit v1.2.3-60-g2f50