From eac77c3098ea97bb0e28ed668b2c901ffbd36407 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sat, 28 Sep 2024 21:34:49 +0100 Subject: [PATCH] Codefix: First format argument of IConsolePrint not passed by reference --- src/console_func.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/console_func.h b/src/console_func.h index bf7993b78a..293f7d701e 100644 --- a/src/console_func.h +++ b/src/console_func.h @@ -38,7 +38,7 @@ void IConsolePrint(TextColour colour_code, const std::string &string); * @tparam Args The types of the other arguments. */ template -inline void IConsolePrint(TextColour colour_code, fmt::format_string format, A first_arg, Args&&... other_args) +inline void IConsolePrint(TextColour colour_code, fmt::format_string format, A&& first_arg, Args&&... other_args) { /* The separate first_arg argument is added to aid overloading. * Otherwise the calls that do no need formatting will still use this function. */