diff --git a/earth_enterprise/src/fusion/gst/gstAssetGroup.cpp b/earth_enterprise/src/fusion/gst/gstAssetGroup.cpp index d24cef3c1..0dbb7ca79 100644 --- a/earth_enterprise/src/fusion/gst/gstAssetGroup.cpp +++ b/earth_enterprise/src/fusion/gst/gstAssetGroup.cpp @@ -39,7 +39,7 @@ const char* shortAssetName(const char* n) { auto pos = saname.rfind(elem); if (pos != std::string::npos) { - saname = saname.substr(0,pos); + saname.erase(saname.begin() + pos, saname.end()); break; } }