MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / zeroUnused

Function zeroUnused

src/OpenLoco/src/World/StationManager.cpp:439–457  ·  view source on GitHub ↗

0x0049088B

Source from the content-addressed store, hash-verified

437
438 // 0x0049088B
439 void zeroUnused()
440 {
441 for (auto& station : rawStations())
442 {
443 if (station.empty())
444 {
445 // Zero unused station
446 station = {};
447 }
448 else
449 {
450 // Zero unused station tiles
451 for (auto i = station.stationTileSize; i < std::size(station.stationTiles); i++)
452 {
453 station.stationTiles[i] = {};
454 }
455 }
456 }
457 }
458
459 using CargoStations = sfl::static_vector<std::pair<StationId, uint8_t>, 16>;
460

Callers 1

exportGameStateToFileFunction · 0.50

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected