summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-05-13 00:24:21 +0000
committersmatz <smatz@openttd.org>2009-05-13 00:24:21 +0000
commit3afce9b641f29c8413928906fa6c643af56796e4 (patch)
tree5b37fb13c27b5b62a19b78fbe2bfc1d5a084a9c7 /src
parent90ba8e1bc83b6b5fd0477ce962675e81d072df4c (diff)
downloadopenttd-3afce9b641f29c8413928906fa6c643af56796e4.tar.xz
(svn r16288) -Fix (r16237): crash after clicking in the ClientList window
Diffstat (limited to 'src')
-rw-r--r--src/network/network_gui.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp
index e50335603..6256adc10 100644
--- a/src/network/network_gui.cpp
+++ b/src/network/network_gui.cpp
@@ -1934,8 +1934,10 @@ static void PopupClientList(int client_no, int x, int y)
if (NetworkFindClientInfo(client_no) == NULL) return;
- const Widget *wid = InitializeWidgetArrayFromNestedWidgets(_nested_client_list_widgets, lengthof(_nested_client_list_widgets),
- _client_list_widgets, &generated_client_list_popup_widgets);
+ const Widget *wid = InitializeWidgetArrayFromNestedWidgets(
+ _nested_client_list_popup_widgets, lengthof(_nested_client_list_popup_widgets),
+ _client_list_popup_widgets, &generated_client_list_popup_widgets
+ );
new NetworkClientListPopupWindow(x, y, wid, client_no);
}