summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-12-15 17:24:10 +0000
committertruelight <truelight@openttd.org>2004-12-15 17:24:10 +0000
commitb615e854e1e12c15630a292dd75456e18a03951d (patch)
tree1616c97b91185560a10463de318d99d2df0fb8f6
parentf1b6b1711bc2ab0f0de7ca1015904cb0189a4016 (diff)
downloadopenttd-b615e854e1e12c15630a292dd75456e18a03951d.tar.xz
(svn r1100) -Fix: [Console] 'set company_pw' is now working again (Hackykid)
-rw-r--r--console_cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/console_cmds.c b/console_cmds.c
index 7aaf3999c..95651c4ba 100644
--- a/console_cmds.c
+++ b/console_cmds.c
@@ -631,7 +631,7 @@ DEF_CONSOLE_CMD(ConSet) {
if (strncmp(argv[2], "*", 20) == 0) {
_network_player_info[_local_player].password[0] = '\0';
} else {
- strncpy(_network_player_info[_local_player].password, argv[1], 20);
+ strncpy(_network_player_info[_local_player].password, argv[2], 20);
}
if (!_network_server)
SEND_COMMAND(PACKET_CLIENT_SET_PASSWORD)(_network_player_info[_local_player].password);