mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-26 05:34:12 +01:00
Codechange: strongly type VehicleID
This commit is contained in:
@@ -335,7 +335,7 @@ struct NewGRFInspectWindow : Window {
|
||||
assert(this->HasChainIndex());
|
||||
const Vehicle *v = Vehicle::Get(index);
|
||||
v = v->Move(this->chain_index);
|
||||
if (v != nullptr) index = v->index;
|
||||
if (v != nullptr) index = v->index.base();
|
||||
}
|
||||
return index;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user