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/StarQuestInterface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/frontend/StarQuestInterface.cpp') diff --git a/source/frontend/StarQuestInterface.cpp b/source/frontend/StarQuestInterface.cpp index cb1f3e5..fa42b4d 100644 --- a/source/frontend/StarQuestInterface.cpp +++ b/source/frontend/StarQuestInterface.cpp @@ -236,7 +236,7 @@ void QuestLogInterface::fetchData() { else if (filter.equalsIgnoreCase("completed")) showQuests(m_manager->listCompletedQuests()); else - throw StarException(strf("Unknown quest filter '%s'", filter)); + throw StarException(strf("Unknown quest filter '{}'", filter)); } void QuestLogInterface::showQuests(List quests) { @@ -422,7 +422,7 @@ QuestCompleteInterface::QuestCompleteInterface(QuestPtr const& quest, PlayerPtr commonSetup(config, m_quest->completionText(), "QuestComplete"); if (auto moneyLabel = fetchChild("lblMoneyAmount")) - moneyLabel->setText(strf("%s", m_quest->money())); + moneyLabel->setText(strf("{}", m_quest->money())); disableScissoring(); } -- cgit v1.2.3