diff options
author | truelight <truelight@openttd.org> | 2007-10-30 11:29:01 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2007-10-30 11:29:01 +0000 |
commit | e288b2456faf621b8f5a5a33431c8349bab984fc (patch) | |
tree | 431686553f05217dc4e139907ec73d451f10e9ce /src/network/network_client.cpp | |
parent | 0204f501df70b5e0f554cc9686555cfb603a2064 (diff) | |
download | openttd-e288b2456faf621b8f5a5a33431c8349bab984fc.tar.xz |
(svn r11357) -Fix: NetworkUniqueID could be 80 chars, while the max size we generate is 32. So reduce the size a bit. Pointed out by dihedral, so give him a big hug ;)
Diffstat (limited to 'src/network/network_client.cpp')
-rw-r--r-- | src/network/network_client.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_client.cpp b/src/network/network_client.cpp index 7f7566963..d7f7a7ee8 100644 --- a/src/network/network_client.cpp +++ b/src/network/network_client.cpp @@ -341,7 +341,7 @@ DEF_CLIENT_RECEIVE_COMMAND(PACKET_SERVER_CLIENT_INFO) uint16 index = p->Recv_uint16(); PlayerID playas = (Owner)p->Recv_uint8(); char name[NETWORK_NAME_LENGTH]; - char unique_id[NETWORK_NAME_LENGTH]; + char unique_id[NETWORK_UNIQUE_ID_LENGTH]; p->Recv_string(name, sizeof(name)); p->Recv_string(unique_id, sizeof(unique_id)); |