From 332983c97b7a729c4dc5f19aa9ee4a22c420f7d8 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Tue, 27 Jun 2023 20:23:44 +1000 Subject: The Formatting String Catastrophe --- source/game/objects/StarContainerObject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/game/objects/StarContainerObject.cpp') diff --git a/source/game/objects/StarContainerObject.cpp b/source/game/objects/StarContainerObject.cpp index ee0505d..399c426 100644 --- a/source/game/objects/StarContainerObject.cpp +++ b/source/game/objects/StarContainerObject.cpp @@ -204,7 +204,7 @@ InteractAction ContainerObject::interact(InteractRequest const&) { } Json ContainerObject::containerGuiConfig() const { - return Root::singleton().assets()->json(configValue("uiConfig").toString().replace("", strf("%s", m_items->size()))); + return Root::singleton().assets()->json(configValue("uiConfig").toString().replace("", strf("{}", m_items->size()))); } String ContainerObject::containerDescription() const { -- cgit v1.2.3