summaryrefslogtreecommitdiff
path: root/src/industry_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/industry_gui.cpp')
-rw-r--r--src/industry_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp
index 4fa350128..eb6018973 100644
--- a/src/industry_gui.cpp
+++ b/src/industry_gui.cpp
@@ -1209,7 +1209,7 @@ protected:
*this->industries.Append() = i;
}
- this->industries.Compact();
+ this->industries.shrink_to_fit();
this->industries.RebuildDone();
this->vscroll->SetCount(this->industries.Length()); // Update scrollbar as well.
}