From 3b967ab40c6821f4504fd4e384c8351832ed8036 Mon Sep 17 00:00:00 2001 From: phosit Date: Sat, 5 Sep 2026 15:40:01 +0200 Subject: [PATCH] Fix format-string in ComponentManager Introduced in 9822a225732 by switching to `fmt::format`. --- source/simulation2/system/ComponentManager.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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