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

Method Load

src/saveload/order_sl.cpp:341–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339 }
340
341 void Load() const override
342 {
343 const std::vector<SaveLoad> slt = SlCompatTableHeader(GetOrderBackupDescription(), _order_backup_sl_compat);
344
345 int index;
346
347 while ((index = SlIterateArray()) != -1) {
348 /* set num_orders to 0 so it's a valid OrderList */
349 OrderBackup *ob = new (OrderBackupID(index)) OrderBackup();
350 SlObject(ob, slt);
351 }
352 }
353
354 void FixPointers() const override
355 {

Callers

nothing calls this directly

Calls 4

SlCompatTableHeaderFunction · 0.85
SlIterateArrayFunction · 0.85
SlObjectFunction · 0.85

Tested by

no test coverage detected