mirror of
https://github.com/OpenTTD/OpenTTD
synced 2025-12-11 23:42:11 +01:00
Codechange: explicitly initialise Depot member variables
This commit is contained in:
@@ -1011,7 +1011,6 @@ CommandCost CmdBuildTrainDepot(DoCommandFlags flags, TileIndex tile, RailType ra
|
||||
SetRailDepotExitDirection(tile, dir);
|
||||
} else {
|
||||
Depot *d = new Depot(tile);
|
||||
d->build_date = TimerGameCalendar::date;
|
||||
|
||||
MakeRailDepot(tile, _current_company, d->index, dir, railtype);
|
||||
MakeDefaultName(d);
|
||||
|
||||
Reference in New Issue
Block a user