Fix 98481ecc: Incorrect parsing of var 6x parameter in NewGRF debug window
This commit is contained in:
@@ -597,7 +597,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();
|
||||
|
||||
Reference in New Issue
Block a user