summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-11-25 17:48:44 +0000
committerrubidium <rubidium@openttd.org>2009-11-25 17:48:44 +0000
commit6941db6c39428ff333640e1b68f094d339264de1 (patch)
tree20bccc6952cd4d02921e4c0d83357c32d766856b
parent93ef16c5200e1ecc82c4ab6437600485c290c937 (diff)
downloadopenttd-6941db6c39428ff333640e1b68f094d339264de1.tar.xz
(svn r18287) -Fix (r17841): a not properly updated list caused reading just freed memory which caused buttons to not work as they should
-rw-r--r--src/network/network_content_gui.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/network_content_gui.cpp b/src/network/network_content_gui.cpp
index b2df6cda7..cfc06b7ba 100644
--- a/src/network/network_content_gui.cpp
+++ b/src/network/network_content_gui.cpp
@@ -757,6 +757,8 @@ public:
virtual void OnInvalidateData(int data)
{
+ if (this->content.NeedRebuild()) this->BuildContentList();
+
/* To sum all the bytes we intend to download */
this->filesize_sum = 0;
bool show_select_all = false;