mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
Codefix: First format argument of IConsolePrint not passed by reference (#12966)
This commit is contained in:
parent
7a0e50002b
commit
386dbb7c80
@ -38,7 +38,7 @@ void IConsolePrint(TextColour colour_code, const std::string &string);
|
||||
* @tparam Args The types of the other arguments.
|
||||
*/
|
||||
template <typename A, typename ... Args>
|
||||
inline void IConsolePrint(TextColour colour_code, fmt::format_string<A, Args...> format, A first_arg, Args&&... other_args)
|
||||
inline void IConsolePrint(TextColour colour_code, fmt::format_string<A, Args...> 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. */
|
||||
|
Loading…
Reference in New Issue
Block a user