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

Function zeroUnusedOrderTable

src/OpenLoco/src/Vehicles/OrderManager.cpp:221–225  ·  view source on GitHub ↗

0x004702F7

Source from the content-addressed store, hash-verified

219
220 // 0x004702F7
221 void zeroUnusedOrderTable()
222 {
223 // Zero all the unused entries after the end of the order table
224 std::fill(std::begin(getGameState().orders) + orderTableLength(), std::end(getGameState().orders), 0);
225 }
226
227 // 0x004702EC
228 void reset()

Callers 1

exportGameStateToFileFunction · 0.85

Calls 2

beginFunction · 0.85
endFunction · 0.85

Tested by

no test coverage detected