diff --git a/OdeWorld.cc b/OdeWorld.cc index b0ebeaa..f5460ed 100644 --- a/OdeWorld.cc +++ b/OdeWorld.cc @@ -116,9 +116,10 @@ vector 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; } }