changed count loops into iterator loops where intent was more clear

This commit is contained in:
suhrke 2017-07-06 11:29:14 -07:00
parent 100c830c83
commit 47eb891dfe

View File

@ -118,8 +118,9 @@ EntityConverter::extractMapInfo(const std::vector<std::vector<std::string>> &ent
std::cerr << "Map info already extracted, doing nothing" << std::endl;
}
else {
for ( int i = 0; i < entities.size(); i++ ) {
std::vector<std::string> entity( entities[i] );
std::vector<std::vector<std::string>>::const_iterator it;
for ( it=entities.begin(); it!=entities.end(); ++it ) {
std::vector<std::string> entity( *it );
std::stringstream ss;
std::copy(entity.begin(), entity.end(),