summaryrefslogtreecommitdiff
path: root/src/ai/ai_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ai/ai_gui.cpp')
-rw-r--r--src/ai/ai_gui.cpp5
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. */