mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-23 04:04:09 +01:00
Codefix: initialise a few uninitialised variables
This commit is contained in:
@@ -857,7 +857,7 @@ static void AddAcceptedCargo_Town(TileIndex tile, CargoArray &acceptance, CargoT
|
||||
*/
|
||||
CargoArray GetAcceptedCargoOfHouse(const HouseSpec *hs)
|
||||
{
|
||||
CargoTypes always_accepted;
|
||||
CargoTypes always_accepted{};
|
||||
CargoArray acceptance{};
|
||||
AddAcceptedCargoOfHouse(INVALID_TILE, hs->Index(), hs, nullptr, acceptance, always_accepted);
|
||||
return acceptance;
|
||||
|
||||
Reference in New Issue
Block a user