diff options
author | rubidium <rubidium@openttd.org> | 2010-11-18 22:24:10 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-11-18 22:24:10 +0000 |
commit | c7f0518f162645e4bccdea64387b8fe63009af2a (patch) | |
tree | d95fd7120f3cd3bda657b829996adbe0f8ca561b /src/ai/ai_gui.cpp | |
parent | 94c45d9cc34afca7b66e1cf4595bff816123b055 (diff) | |
download | openttd-c7f0518f162645e4bccdea64387b8fe63009af2a.tar.xz |
(svn r21246) -Fix: upon rescanning AIs the new AIs would (after some time) show up in the AI list but you could not select all
Diffstat (limited to 'src/ai/ai_gui.cpp')
-rw-r--r-- | src/ai/ai_gui.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ai/ai_gui.cpp b/src/ai/ai_gui.cpp index b956582d4..a29c169eb 100644 --- a/src/ai/ai_gui.cpp +++ b/src/ai/ai_gui.cpp @@ -187,6 +187,11 @@ struct AIListWindow : public Window { this->vscroll->SetCapacity(nwi->current_y / this->line_height); nwi->widget_data = (this->vscroll->GetCapacity() << MAT_ROW_START) + (1 << MAT_COL_START); } + + virtual void OnInvalidateData(int data) + { + this->vscroll->SetCount((int)this->ai_info_list->size() + 1); + } }; /** Widgets for the AI list window. */ |