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. */