summaryrefslogtreecommitdiff
path: root/src/main_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main_gui.cpp')
-rw-r--r--src/main_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp
index 96fb4f7cd..fa89c91d3 100644
--- a/src/main_gui.cpp
+++ b/src/main_gui.cpp
@@ -342,7 +342,7 @@ struct MainWindow : Window
if (cio == NULL) break;
/* Only players actually playing can speak to team. Eg spectators cannot */
- if (_settings_client.gui.prefer_teamchat && IsValidPlayer(cio->client_playas)) {
+ if (_settings_client.gui.prefer_teamchat && IsValidPlayerID(cio->client_playas)) {
const NetworkClientInfo *ci;
FOR_ALL_ACTIVE_CLIENT_INFOS(ci) {
if (ci->client_playas == cio->client_playas && ci != cio) {