summaryrefslogtreecommitdiff
path: root/network_server.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-12-23 13:53:05 +0000
committertruelight <truelight@openttd.org>2004-12-23 13:53:05 +0000
commita14a78de3426b38d8f5d95304f26eab70986a3f9 (patch)
tree2af4202f587c7b007b6e2a3ef1697b3c620bcc00 /network_server.c
parent533e7a97ef30c6bb3c477b9bdc93eca306761a89 (diff)
downloadopenttd-a14a78de3426b38d8f5d95304f26eab70986a3f9.tar.xz
(svn r1246) -Fix: [ 1090099 ] Company-messages did crash the game, because
company-index was sent, which should have been the client-index
Diffstat (limited to 'network_server.c')
-rw-r--r--network_server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/network_server.c b/network_server.c
index a42d7b5c8..91ff13e1c 100644
--- a/network_server.c
+++ b/network_server.c
@@ -995,7 +995,7 @@ void NetworkServer_HandleChat(NetworkAction action, DestType desttype, int dest,
} else {
FOR_ALL_CLIENTS(cs) {
if (cs->index == from_index) {
- SEND_COMMAND(PACKET_SERVER_CHAT)(cs, action, dest, true, msg);
+ SEND_COMMAND(PACKET_SERVER_CHAT)(cs, action, ci_to->client_index, true, msg);
}
}
}