mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Fix format-string in ComponentManager
Introduced in 9822a22573 by switching to `fmt::format`.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user