diff options
author | Darkvater <darkvater@openttd.org> | 2006-10-18 21:38:45 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-10-18 21:38:45 +0000 |
commit | 7c99e38c600457d0e1c2a34183ebd4d8b6aa96cf (patch) | |
tree | 6537dc6da1b41a157d465a988166c0a17bbb4510 | |
parent | b1fb27dc2ed65f7ac7d399a47047f0371b3ff53a (diff) | |
download | openttd-7c99e38c600457d0e1c2a34183ebd4d8b6aa96cf.tar.xz |
(svn r6828) -Fix: Properly fix r6842
-rw-r--r-- | main_gui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main_gui.c b/main_gui.c index 46c32df53..91e0e1ff8 100644 --- a/main_gui.c +++ b/main_gui.c @@ -2328,12 +2328,12 @@ static void MainWindowWndProc(Window *w, WindowEvent *e) #ifdef ENABLE_NETWORK case WKC_RETURN: case 'T': // smart chat; send to team if any, otherwise to all if (_networking) { - const NetworkClientInfo *ci = NULL; const NetworkClientInfo *cio = NetworkFindClientInfoFromIndex(_network_own_client_index); bool has_team = false; /* Only players actually playing can speak to team. Eg spectators cannot */ if (IsValidPlayer(cio->client_playas)) { + const NetworkClientInfo *ci; FOR_ALL_ACTIVE_CLIENT_INFOS(ci) { if (ci->client_playas == cio->client_playas && ci != cio) { has_team = true; @@ -2342,7 +2342,7 @@ static void MainWindowWndProc(Window *w, WindowEvent *e) } } - ShowNetworkChatQueryWindow(has_team ? DESTTYPE_PLAYER : DESTTYPE_BROADCAST, ci->client_playas); + ShowNetworkChatQueryWindow(has_team ? DESTTYPE_PLAYER : DESTTYPE_BROADCAST, cio->client_playas); break; } break; |