1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-21 03:12:41 +01:00

Codechange: explicitly initialise Depot member variables

This commit is contained in:
Rubidium
2025-02-17 20:55:39 +01:00
committed by rubidium42
parent 1f3198a395
commit 0449dc48c8
4 changed files with 7 additions and 9 deletions

View File

@@ -146,7 +146,6 @@ CommandCost CmdBuildShipDepot(DoCommandFlags flags, TileIndex tile, Axis axis)
if (flags.Test(DoCommandFlag::Execute)) {
Depot *depot = new Depot(tile);
depot->build_date = TimerGameCalendar::date;
uint new_water_infra = 2 * LOCK_DEPOT_TILE_FACTOR;
/* Update infrastructure counts after the tile clears earlier.