From: <dsh...@us...> - 2007-06-30 15:59:14
|
Revision: 1702 http://svn.sourceforge.net/crawl-ref/?rev=1702&view=rev Author: dshaligram Date: 2007-06-30 08:59:11 -0700 (Sat, 30 Jun 2007) Log Message: ----------- Fixed a couple of infinite loops. Modified Paths: -------------- trunk/crawl-ref/source/stuff.cc Modified: trunk/crawl-ref/source/stuff.cc =================================================================== --- trunk/crawl-ref/source/stuff.cc 2007-06-30 15:49:18 UTC (rev 1701) +++ trunk/crawl-ref/source/stuff.cc 2007-06-30 15:59:11 UTC (rev 1702) @@ -1121,7 +1121,7 @@ { std::pair<dgn_marker_map::const_iterator, dgn_marker_map::const_iterator> els = markers.equal_range(c); - for (dgn_marker_map::const_iterator i = els.first; i != els.second; ) + for (dgn_marker_map::const_iterator i = els.first; i != els.second; ++i) if (type == MAT_ANY || i->second->get_type() == type) return (i->second); return (NULL); @@ -1133,7 +1133,7 @@ std::pair<dgn_marker_map::const_iterator, dgn_marker_map::const_iterator> els = markers.equal_range(c); std::vector<map_marker*> rmarkers; - for (dgn_marker_map::const_iterator i = els.first; i != els.second; ) + for (dgn_marker_map::const_iterator i = els.first; i != els.second; ++i) rmarkers.push_back(i->second); return (rmarkers); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |