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/StarBehaviorDatabase.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'source/game/StarBehaviorDatabase.cpp') diff --git a/source/game/StarBehaviorDatabase.cpp b/source/game/StarBehaviorDatabase.cpp index 4306cd7..5e08d98 100644 --- a/source/game/StarBehaviorDatabase.cpp +++ b/source/game/StarBehaviorDatabase.cpp @@ -92,7 +92,7 @@ NodeParameterValue replaceBehaviorTag(NodeParameterValue const& parameter, Strin if (auto replace = treeParameters.maybe(treeKey)) { return *replace; } else { - throw StarException(strf("No parameter specified for tag '%s'", key)); + throw StarException(strf("No parameter specified for tag '{}'", key)); } } } @@ -110,7 +110,7 @@ Maybe replaceOutputBehaviorTag(Maybe const& output, StringMap const& treeParameters, BehaviorTree& tree) const { @@ -292,7 +292,7 @@ BehaviorNodeConstPtr BehaviorDatabase::behaviorNode(Json const& json, StringMap< } // above statement must be exhaustive - throw StarException(strf("Behavior node type '%s' could not be created from JSON", BehaviorNodeTypeNames.getRight(type))); + throw StarException(strf("Behavior node type '{}' could not be created from JSON", BehaviorNodeTypeNames.getRight(type))); } } -- cgit v1.2.3