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 | 2e4f32023c8f8bb5e116d3779f1c90a33a823008 (patch) | |
tree | 99f9e6d200177e3369eb4e755598004f5bb54e2f /src/network/network.cpp | |
parent | 88848d78b5715854cf7788a83e83edeb084c9a9b (diff) | |
download | openttd-2e4f32023c8f8bb5e116d3779f1c90a33a823008.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; |