Pre instead of post increment a variable.

Issue found by cppcheck.
This commit is contained in:
Mark de Wever 2014-02-09 18:39:53 +01:00
parent 4b3c10afd8
commit 274ef5841a

View File

@ -164,7 +164,7 @@ struct animation_cursor
} }
else { else {
(*bi).attributes.merge_attributes(cfg); (*bi).attributes.merge_attributes(cfg);
bi++; ++bi;
} }
} }
// Then we prune all parent branches with similar matches as they // Then we prune all parent branches with similar matches as they
@ -191,7 +191,7 @@ struct animation_cursor
{ {
parent->branches.erase(bi++); parent->branches.erase(bi++);
} }
else bi++; else ++bi;
} }
} }
}; };