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

Method Load

src/saveload/labelmaps_sl.cpp:94–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92 }
93
94 void Load() const override
95 {
96 const std::vector<SaveLoad> slt = SlCompatTableHeader(description, _label_object_sl_compat);
97
98 _roadtype_list.reserve(ROADTYPE_END);
99
100 LabelObject<RoadTypeLabel> lo;
101
102 while (SlIterateArray() != -1) {
103 SlObject(&lo, slt);
104 _roadtype_list.push_back(lo);
105 }
106 }
107};
108
109static const RAILChunkHandler RAIL;

Callers

nothing calls this directly

Calls 5

SlCompatTableHeaderFunction · 0.85
SlIterateArrayFunction · 0.85
SlObjectFunction · 0.85
reserveMethod · 0.80
push_backMethod · 0.80

Tested by

no test coverage detected