From 109dd33c4a7d73ef08c2f02ca1b06475c6ba85b0 Mon Sep 17 00:00:00 2001 From: maedhros Date: Tue, 12 Jun 2007 13:22:14 +0000 Subject: (svn r10114) -Fix: Only load newgrf error messages if the language matches the current language. Since only one error can be loaded anyway, if the language didn't match you'd get "Undefined string". Also since we're only loading one language there's no need to use AddGRFString any more. --- src/newgrf_config.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/newgrf_config.h') diff --git a/src/newgrf_config.h b/src/newgrf_config.h index 491c7ca88..120b085b7 100644 --- a/src/newgrf_config.h +++ b/src/newgrf_config.h @@ -36,8 +36,9 @@ struct GRFIdentifier { }; struct GRFError { + char *custom_message; + char *data; StringID message; - StringID data; StringID severity; uint8 num_params; uint8 param_number[2]; -- cgit v1.2.3-54-g00ecf