fixed infinite loop in loadPhy()
git-svn-id: svn://anubis/misc/OdeWorld@148 bd8a9e45-a331-0410-811e-c64571078777
This commit is contained in:
parent
9b78f00f69
commit
25ef8f61d7
@ -116,9 +116,10 @@ vector<dGeomID> OdeWorld::loadPhy(const std::string & path,
|
||||
string n = line.substr(pos, pos2 - pos);
|
||||
float f = atof(n.c_str());
|
||||
args.push_back(f);
|
||||
if (pos2 == string::npos)
|
||||
break;
|
||||
pos = pos2 + 1;
|
||||
}
|
||||
cerr << "Found a '" << type << "' of name '" << name << "' with " << args.size() << " args" << endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user