diff --git a/source/simulation2/system/ComponentManager.cpp b/source/simulation2/system/ComponentManager.cpp index 6b151948fc..e106625657 100644 --- a/source/simulation2/system/ComponentManager.cpp +++ b/source/simulation2/system/ComponentManager.cpp @@ -218,8 +218,7 @@ void CComponentManager::Script_RegisterComponentType_Common(int iid, const std:: if (ctPrevious.type != CT_Script) { throw std::logic_error{fmt::format( - "Loading script component type with same name '%s' as native component", - cname.c_str())}; + "Loading script component type with same name '{}' as native component", cname)}; } // We don't support changing the IID of a component type (it would require fiddling