mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-10 21:32:02 +00:00
Pre instead of post increment a variable.
Issue found by cppcheck.
This commit is contained in:
parent
e5253f3265
commit
3208dd8065
@ -326,7 +326,7 @@ bool remove_wml_hotkey(const std::string& id)
|
||||
else
|
||||
{
|
||||
LOG_G << "removing wml hotkey with id=" + id + "\n";
|
||||
for(boost::ptr_vector<hotkey_command>::iterator itor = known_hotkeys.begin(); itor != known_hotkeys.end(); itor ++)
|
||||
for(boost::ptr_vector<hotkey_command>::iterator itor = known_hotkeys.begin(); itor != known_hotkeys.end(); ++itor)
|
||||
{
|
||||
if(itor->command == id)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user