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

summaryrefslogtreecommitdiff
path: root/source/game/StarEffectSourceDatabase.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/StarEffectSourceDatabase.cpp
parent14b9689b6d4f4ad5276c88130dc6e449bedc0709 (diff)
The Formatting String Catastrophe
Diffstat (limited to 'source/game/StarEffectSourceDatabase.cpp')
-rw-r--r--source/game/StarEffectSourceDatabase.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/game/StarEffectSourceDatabase.cpp b/source/game/StarEffectSourceDatabase.cpp
index d709dfb..5ef83de 100644
--- a/source/game/StarEffectSourceDatabase.cpp
+++ b/source/game/StarEffectSourceDatabase.cpp
@@ -18,7 +18,7 @@ EffectSourceDatabase::EffectSourceDatabase() {
auto sourceConfig = make_shared<EffectSourceConfig>(assets->json(file));
if (m_sourceConfigs.contains(sourceConfig->kind()))
throw StarException(
- strf("Duplicate effect source asset kind Name %s. configfile %s", sourceConfig->kind(), file));
+ strf("Duplicate effect source asset kind Name {}. configfile {}", sourceConfig->kind(), file));
auto k = sourceConfig->kind().toLower();
m_sourceConfigs[k] = sourceConfig;
}
@@ -27,7 +27,7 @@ EffectSourceDatabase::EffectSourceDatabase() {
EffectSourceConfigPtr EffectSourceDatabase::effectSourceConfig(String const& kind) const {
auto k = kind.toLower();
if (!m_sourceConfigs.contains(k))
- throw StarException(strf("Unknown effect source definition with kind '%s'.", kind));
+ throw StarException(strf("Unknown effect source definition with kind '{}'.", kind));
return m_sourceConfigs.get(k);
}