From 386dbb7c801ece03b34d17dae33da262c9b09f44 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Tue, 1 Oct 2024 14:12:19 +0100 Subject: [PATCH] Codefix: First format argument of IConsolePrint not passed by reference (#12966) --- 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. */