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/StarPlayerTech.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/game/StarPlayerTech.cpp') diff --git a/source/game/StarPlayerTech.cpp b/source/game/StarPlayerTech.cpp index 604c6a6..133f5f7 100644 --- a/source/game/StarPlayerTech.cpp +++ b/source/game/StarPlayerTech.cpp @@ -43,7 +43,7 @@ bool PlayerTech::isEnabled(String const& techModule) const { void PlayerTech::enable(String const& techModule) { if (!m_availableTechs.contains(techModule)) - throw PlayerTechException::format("Enabling tech module '%s' when not available", techModule); + throw PlayerTechException::format("Enabling tech module '{}' when not available", techModule); m_enabledTechs.add(techModule); } @@ -62,7 +62,7 @@ bool PlayerTech::isEquipped(String const& techModule) const { void PlayerTech::equip(String const& techModule) { if (!m_enabledTechs.contains(techModule)) - throw PlayerTechException::format("Equipping tech module '%s' when not enabled", techModule); + throw PlayerTechException::format("Equipping tech module '{}' when not enabled", techModule); auto techDatabase = Root::singleton().techDatabase(); m_equippedTechs[techDatabase->tech(techModule).type] = techModule; -- cgit v1.2.3