Pre instead of post increment a variable.

Issue found by cppcheck.
This commit is contained in:
Mark de Wever 2014-02-09 18:37:05 +01:00
parent e5253f3265
commit 3208dd8065

View File

@ -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)
{