summaryrefslogtreecommitdiff
path: root/src/smallmap_gui.cpp
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2019-04-12 17:47:13 +0200
committerglx22 <glx22@users.noreply.github.com>2019-04-18 21:49:34 +0200
commit0797de06be265da4f3bb06114cae4d8e5c830e71 (patch)
tree740b82448bb649fd3b7a57494f85ebc1179b4567 /src/smallmap_gui.cpp
parentf0b3267615b79dd9301226979812eeed39158e2d (diff)
downloadopenttd-0797de06be265da4f3bb06114cae4d8e5c830e71.tar.xz
Codechange: use std::vector for _sorted_cargo_specs
Diffstat (limited to 'src/smallmap_gui.cpp')
-rw-r--r--src/smallmap_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp
index 124985173..69ce56d34 100644
--- a/src/smallmap_gui.cpp
+++ b/src/smallmap_gui.cpp
@@ -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;