Revision: 266 http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=266&view=rev Author: rorthomas Date: 2009-05-14 13:28:35 +0000 (Thu, 14 May 2009)
Log Message: ----------- configurator bugfixes Modified Paths: -------------- trunk/build/configurator/source/configurator.cpp Modified: trunk/build/configurator/source/configurator.cpp =================================================================== --- trunk/build/configurator/source/configurator.cpp 2009-05-14 09:57:17 UTC (rev 265) +++ trunk/build/configurator/source/configurator.cpp 2009-05-14 13:28:35 UTC (rev 266) @@ -1790,8 +1790,7 @@ { // setup control tree std::map<int, std::vector<event_trigger_t> > controls = INPUTENGINE.getEvents(); - std::map<int, std::vector<event_trigger_t> >::const_iterator mapIt; - + std::map<int, std::vector<event_trigger_t> >::iterator mapIt; // clear everything controlItemCounter=0; @@ -1815,10 +1814,9 @@ wxTreeItemId *curRoot = 0; for(mapIt = controls.begin(); mapIt != controls.end(); mapIt++) { - int size = mapIt->second.size(); - for(int j=0;j<size;j++, controlItemCounter++) + for(std::vector<event_trigger_t>::iterator it2 = mapIt->second.begin(); it2 != mapIt->second.end(); it2++, controlItemCounter++) { - const event_trigger_t evt = mapIt->second[j]; + const event_trigger_t evt = *it2; if(evt.group != curGroup || curRoot == 0) { //if(curRoot!=0) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ Rigsofrods-devel mailing list Rigsofrods-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rigsofrods-devel