MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / ~VehicleOrderSaver

Method ~VehicleOrderSaver

src/train_cmd.cpp:2669–2672  ·  view source on GitHub ↗

* Restore the saved order to the vehicle, if Restore() has not already been called. */

Source from the content-addressed store, hash-verified

2667 * Restore the saved order to the vehicle, if Restore() has not already been called.
2668 */
2669 ~VehicleOrderSaver()
2670 {
2671 if (!this->restored) this->Restore();
2672 }
2673
2674 /**
2675 * Set the current vehicle order to the next order in the order list.

Callers

nothing calls this directly

Calls 1

RestoreMethod · 0.95

Tested by

no test coverage detected