From 274ef5841a1383fcd464be0dfe1cb007e748f388 Mon Sep 17 00:00:00 2001 From: Mark de Wever Date: Sun, 9 Feb 2014 18:39:53 +0100 Subject: [PATCH] Pre instead of post increment a variable. Issue found by cppcheck. --- src/unit_animation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/unit_animation.cpp b/src/unit_animation.cpp index 04b0f2840c0..6fa467d420c 100644 --- a/src/unit_animation.cpp +++ b/src/unit_animation.cpp @@ -164,7 +164,7 @@ struct animation_cursor } else { (*bi).attributes.merge_attributes(cfg); - bi++; + ++bi; } } // Then we prune all parent branches with similar matches as they @@ -191,7 +191,7 @@ struct animation_cursor { parent->branches.erase(bi++); } - else bi++; + else ++bi; } } };