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

Method Retrieve

src/station_gui.cpp:948–952  ·  view source on GitHub ↗

* Retrieve a child for the given station. Return nullptr if it doesn't exist. * @param station ID of the station the child we're looking for is associated with. * @return a child entry for the given station or nullptr. */

Source from the content-addressed store, hash-verified

946 * @return a child entry for the given station or nullptr.
947 */
948 CargoDataEntry *Retrieve(StationID station) const
949 {
950 CargoDataEntry t(station);
951 return this->Retrieve(this->children->find(t));
952 }
953
954 /**
955 * Retrieve a child for the given cargo. Return nullptr if it doesn't exist.

Callers

nothing calls this directly

Calls 2

RetrieveMethod · 0.95
findMethod · 0.45

Tested by

no test coverage detected