diff options
author | rubidium <rubidium@openttd.org> | 2008-07-17 11:19:20 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-07-17 11:19:20 +0000 |
commit | 03afcec36f58dc368b7b9d877a257872857d31e9 (patch) | |
tree | 99f9e6d200177e3369eb4e755598004f5bb54e2f /src/network/network.cpp | |
parent | 7c531c4ececb02109b5651741b915f89027324b9 (diff) | |
download | openttd-03afcec36f58dc368b7b9d877a257872857d31e9.tar.xz |
(svn r13712) -Fix: enforce the length restrictions of company and president name in the commands too.
Diffstat (limited to 'src/network/network.cpp')
-rw-r--r-- | src/network/network.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/network.cpp b/src/network/network.cpp index 56fe67e85..cd0b91408 100644 --- a/src/network/network.cpp +++ b/src/network/network.cpp @@ -70,6 +70,7 @@ uint8 _network_advertise_retries; /* Check whether NETWORK_NUM_LANDSCAPES is still in sync with NUM_LANDSCAPE */ assert_compile((int)NETWORK_NUM_LANDSCAPES == (int)NUM_LANDSCAPE); +assert_compile((int)NETWORK_COMPANY_NAME_LENGTH == MAX_LENGTH_COMPANY_NAME + 1); // global variables (declared in network_data.h) CommandPacket *_local_command_queue; |