Pre instead of post increment a variable.
Issue found by cppcheck.
This commit is contained in:
parent
bdbf29fb57
commit
faf348b070
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue