Pre instead of post increment a variable.

Issue found by cppcheck.
This commit is contained in:
Mark de Wever 2009-12-11 21:05:44 +00:00
parent bdbf29fb57
commit faf348b070

View file

@ -336,7 +336,7 @@ void unit_animation::fill_initial_animations( std::vector<unit_animation> & anim
animations.push_back(unit_animation(0,frame_builder().image(default_image).duration(1),"_disabled_",0));
animations.push_back(unit_animation(0,frame_builder().image(default_image).duration(1).
blend("0.0~0.3:100,0.3~0.0:200",display::rgb(255,255,255)),"_disabled_selected_",0));
for(itor = animation_base.begin() ; itor != animation_base.end() ; itor++ ) {
for(itor = animation_base.begin() ; itor != animation_base.end() ; ++itor ) {
//unit_animation tmp_anim = *itor;
// provide all default anims
//no event, providing a catch all anim