mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-01 19:36:02 +00:00
Pre instead of post increment a variable.
Issue found by cppcheck.
This commit is contained in:
parent
4b3c10afd8
commit
274ef5841a
@ -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;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user