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/frontend/StarContainerInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/frontend/StarContainerInterface.cpp') diff --git a/source/frontend/StarContainerInterface.cpp b/source/frontend/StarContainerInterface.cpp index e94c25c..9f80a94 100644 --- a/source/frontend/StarContainerInterface.cpp +++ b/source/frontend/StarContainerInterface.cpp @@ -129,7 +129,7 @@ ContainerPane::ContainerPane(WorldClientPtr worldClient, PlayerPtr player, Conta m_reader.construct(guiConfig.get("gui"), this); if (auto countWidget = fetchChild("count")) - countWidget->setText(countWidget->text().replace("", strf("%s", container->containerSize()))); + countWidget->setText(countWidget->text().replace("", strf("{}", container->containerSize()))); m_itemBag = make_shared(container->containerSize()); auto items = container->containerItems(); -- cgit v1.2.3