]> git.mxchange.org Git - flightgear.git/commitdiff
don't initialize iterator twice
authormfranz <mfranz>
Mon, 22 Oct 2007 17:28:08 +0000 (17:28 +0000)
committermfranz <mfranz>
Mon, 22 Oct 2007 17:28:08 +0000 (17:28 +0000)
src/GUI/menubar.cxx

index 51ce861ea7a2276d4160e3b8b3eb2bea2ac62c7d..f7955dc159ebc90e6fc3280bb2cd44bc3290cdfd 100644 (file)
@@ -284,7 +284,6 @@ FGMenuBar::destroy_menubar ()
                                 // Delete all those bindings
     SG_LOG(SG_GENERAL, SG_INFO, "Deleting bindings");
     map<string,vector<SGBinding *> >::iterator it;
-    it = _bindings.begin();
     for (it = _bindings.begin(); it != _bindings.end(); it++) {
         SG_LOG(SG_GENERAL, SG_INFO, "Deleting bindings for " << it->first);
         for ( i = 0; i < it->second.size(); i++ )