diff --git a/OdeWorld.cc b/OdeWorld.cc index 244b251..b0ebeaa 100644 --- a/OdeWorld.cc +++ b/OdeWorld.cc @@ -116,6 +116,7 @@ vector OdeWorld::loadPhy(const std::string & path, string n = line.substr(pos, pos2 - pos); float f = atof(n.c_str()); args.push_back(f); + pos = pos2 + 1; } cerr << "Found a '" << type << "' of name '" << name << "' with " << args.size() << " args" << endl; }