MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / GetLength

Method GetLength

src/saveload/station_sl.cpp:222–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220 std::vector<SpecMapping<T>> &GetVector(BaseStation *bst) const override { return GetStationSpecList<T>(bst); }
221
222 size_t GetLength() const override
223 {
224 return IsSavegameVersionBefore(SLV_SAVELOAD_LIST_LENGTH) ? last_num_specs : SlGetStructListLength(UINT8_MAX);
225 }
226};
227
228/* Instantiate SlStationSpecList classes. */

Callers

nothing calls this directly

Calls 2

IsSavegameVersionBeforeFunction · 0.85
SlGetStructListLengthFunction · 0.85

Tested by

no test coverage detected