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

Method CarIter

src/OpenLoco/src/Vehicles/Vehicle.cpp:1092–1101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1090 }
1091
1092 Vehicle::Cars::CarIter::CarIter(const Car* carComponent)
1093 {
1094 if (carComponent == nullptr || carComponent->body == nullptr)
1095 {
1096 nextVehicleComponent = nullptr;
1097 return;
1098 }
1099 current = *carComponent;
1100 nextVehicleComponent = current.body->nextVehicleComponent();
1101 }
1102
1103 Vehicle::Cars::CarIter& Vehicle::Cars::CarIter::operator++()
1104 {

Callers

nothing calls this directly

Calls 1

nextVehicleComponentMethod · 0.80

Tested by

no test coverage detected