mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-28 00:49:11 +00:00
Fix #9802: Assertion failure in BuildRailWaypointWindow constructor
This commit is contained in:
committed by
Patric Stout
parent
3b6ba45268
commit
cce665c07b
@@ -2015,6 +2015,7 @@ struct BuildRailWaypointWindow : PickerWindowBase {
|
||||
this->FinishInitNested(TRANSPORT_RAIL);
|
||||
|
||||
matrix->SetCount(_waypoint_count);
|
||||
if (_cur_waypoint_type >= _waypoint_count) _cur_waypoint_type = 0;
|
||||
matrix->SetClicked(_cur_waypoint_type);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user