From bb848331b6a46c842c1557e9540e9fe7504ed9e7 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Mon, 24 Jan 2022 21:57:44 +0000 Subject: [PATCH] Fix narrowing conversion warning --- src/newgrf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/newgrf.cpp b/src/newgrf.cpp index f0878ef83e..f4e6c0c6cc 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -8767,7 +8767,7 @@ struct GRFPropertyMapAction { extern const GRFVariableMapDefinition _grf_action2_remappable_variables[]; for (const GRFVariableMapDefinition *info = _grf_action2_remappable_variables; info->name != nullptr; info++) { if (info->feature == this->feature && strcmp(info->name, str) == 0) { - _cur.grffile->grf_variable_remaps.push_back({ info->id, (uint8) this->feature, this->input_shift, this->output_shift, this->input_mask, this->output_mask }); + _cur.grffile->grf_variable_remaps.push_back({ (uint16)info->id, (uint8)this->feature, this->input_shift, this->output_shift, this->input_mask, this->output_mask }); success = true; break; }