Codechange: use std::vector for _sorted_cargo_specs

This commit is contained in:
glx
2019-04-12 17:47:13 +02:00
committed by glx22
parent f0b3267615
commit 0797de06be
3 changed files with 19 additions and 21 deletions

View File

@@ -210,7 +210,7 @@ void BuildLinkStatsLegend()
memset(_legend_linkstats, 0, sizeof(_legend_linkstats));
uint i = 0;
for (; i < _sorted_cargo_specs_size; ++i) {
for (; i < _sorted_cargo_specs.size(); ++i) {
const CargoSpec *cs = _sorted_cargo_specs[i];
_legend_linkstats[i].legend = cs->name;