1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-22 03:42:41 +01:00

Fix 98481ecc: Incorrect parsing of var 6x parameter in NewGRF debug window

This commit is contained in:
Jonathan G Rennison
2025-11-17 17:10:51 +00:00
committed by rubidium42
parent a321509d90
commit f0f964577d

View File

@@ -594,7 +594,7 @@ struct NewGRFInspectWindow : Window {
{
if (!str.has_value()) return;
auto val = ParseInteger<int32_t>(*str, 10, true);
auto val = ParseInteger<uint32_t>(*str, 16, true);
if (!val.has_value()) return;
NewGRFInspectWindow::var60params[GetFeatureNum(this->window_number)][this->current_edit_param - 0x60] = *val;
this->SetDirty();