From 27d4900fde6190bb9c3eb31db24324f903c7f170 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Fri, 15 Jul 2022 21:38:19 +0100 Subject: [PATCH] Fix text colour for infrastructure sharing error messages --- src/infrastructure.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/infrastructure.cpp b/src/infrastructure.cpp index daefcd7174..c459282cca 100644 --- a/src/infrastructure.cpp +++ b/src/infrastructure.cpp @@ -24,6 +24,7 @@ #include "string_func.h" #include "scope_info.h" #include "order_cmd.h" +#include "strings_func.h" #include "table/strings.h" @@ -272,7 +273,8 @@ bool CheckSharingChangePossible(VehicleType type) } if (error_message != STR_NULL) { - ShowErrorMessage(error_message, INVALID_STRING_ID, WL_ERROR); + SetDParam(0, error_message); + ShowErrorMessage(STR_WHITE_STRING, INVALID_STRING_ID, WL_ERROR); return false; }