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:
committed by
rubidium42
parent
a321509d90
commit
f0f964577d
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user