diff options
Diffstat (limited to 'src/newgrf_config.cpp')
-rw-r--r-- | src/newgrf_config.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/newgrf_config.cpp b/src/newgrf_config.cpp index 01521cd54..2d2e6f856 100644 --- a/src/newgrf_config.cpp +++ b/src/newgrf_config.cpp @@ -101,6 +101,9 @@ const char *GRFConfig::GetDescription() const /** Set the default value for all parameters as specified by action14. */ void GRFConfig::SetParameterDefaults() { + this->num_params = 0; + MemSetT<uint32>(this->param, 0, lengthof(this->param)); + if (!this->has_param_defaults) return; for (uint i = 0; i < this->param_info.Length(); i++) { |