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

Function freeRoutingHandle

src/OpenLoco/src/Vehicles/RoutingManager.cpp:60–64  ·  view source on GitHub ↗

0x004B1E77

Source from the content-addressed store, hash-verified

58
59 // 0x004B1E77
60 void freeRoutingHandle(const RoutingHandle handle)
61 {
62 auto& vehRoutingArr = routings()[handle.getVehicleRef()];
63 std::fill(std::begin(vehRoutingArr), std::end(vehRoutingArr), kRoutingNull);
64 }
65
66 // 0x004A8810
67 void resetRoutingTable()

Callers 2

deleteTrainFunction · 0.85
createNewVehicleFunction · 0.85

Calls 3

beginFunction · 0.85
endFunction · 0.85
getVehicleRefMethod · 0.80

Tested by

no test coverage detected