Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/StarPlayerTech.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-06-27 20:23:44 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-06-27 20:23:44 +1000
commit332983c97b7a729c4dc5f19aa9ee4a22c420f7d8 (patch)
treefd9c441b796b522bdd5c7f8fbd32f51b8eff2a28 /source/game/StarPlayerTech.cpp
parent14b9689b6d4f4ad5276c88130dc6e449bedc0709 (diff)
The Formatting String Catastrophe
Diffstat (limited to 'source/game/StarPlayerTech.cpp')
-rw-r--r--source/game/StarPlayerTech.cpp4
1 files changed, 2 insertions, 2 deletions
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;