(svn r1246) -Fix: [ 1090099 ] Company-messages did crash the game, because

company-index was sent, which should have been the client-index
This commit is contained in:
truelight
2004-12-23 13:53:05 +00:00
parent 533e7a97ef
commit a14a78de34
2 changed files with 3 additions and 1 deletions

View File

@@ -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);
}
}
}