diff --git a/components/resource/scenemanager.cpp b/components/resource/scenemanager.cpp index 610aa6b506..f66337df99 100644 --- a/components/resource/scenemanager.cpp +++ b/components/resource/scenemanager.cpp @@ -667,10 +667,11 @@ namespace Resource }; std::vector result; - result.reserve(std::size(names)); + result.reserve(2 * std::size(names)); for (std::string_view name : names) { + result.emplace_back(name); std::string prefixedName("Tri "); prefixedName += name; result.push_back(std::move(prefixedName));