diff options
Diffstat (limited to 'src/newgrf_config.h')
-rw-r--r-- | src/newgrf_config.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/newgrf_config.h b/src/newgrf_config.h index 74e2d54ab..fe3eab37e 100644 --- a/src/newgrf_config.h +++ b/src/newgrf_config.h @@ -13,6 +13,7 @@ #define NEWGRF_CONFIG_H #include "strings_type.h" +#include "core/alloc_type.hpp" /** GRF config bit flags */ enum GCF_Flags { @@ -55,7 +56,10 @@ struct GRFIdentifier { }; /** Information about why GRF had problems during initialisation */ -struct GRFError { +struct GRFError : ZeroedMemoryAllocator { + GRFError(StringID severity, StringID message = 0); + ~GRFError(); + char *custom_message; ///< Custom message (if present) char *data; ///< Additional data for message and custom_message StringID message; ///< Default message |