diff --git a/examples/Importers/ImportMJCFDemo/BulletMJCFImporter.cpp b/examples/Importers/ImportMJCFDemo/BulletMJCFImporter.cpp index befb30032..b6eb24b9a 100644 --- a/examples/Importers/ImportMJCFDemo/BulletMJCFImporter.cpp +++ b/examples/Importers/ImportMJCFDemo/BulletMJCFImporter.cpp @@ -660,7 +660,7 @@ struct BulletMJCFImporterInternalData btArray frictions; btAlignedObjectArray strArray; urdfIsAnyOf(" ", strArray); - urdfStringSplit(pieces, sz, strArray); + urdfStringSplit(pieces, frictionS, strArray); for (int i = 0; i < pieces.size(); ++i) { if (!pieces[i].empty())