diff options
author | rubidium <rubidium@openttd.org> | 2011-01-14 22:08:40 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-01-14 22:08:40 +0000 |
commit | 6b86ee9888d177c214a079a1c5d88b680458fff4 (patch) | |
tree | f8812af54dca516cd06f844abcd3092493e59739 /src/town_type.h | |
parent | 080a941edaea3b234967f8bad76a69d27033a902 (diff) | |
download | openttd-6b86ee9888d177c214a079a1c5d88b680458fff4.tar.xz |
(svn r21797) -Fix/Change: unify the size (in characters) of the string inputs with eachother and TTD to prevent crashes/asserts with e.g. signs that are too long
Diffstat (limited to 'src/town_type.h')
-rw-r--r-- | src/town_type.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/town_type.h b/src/town_type.h index 224df5ff9..0efc2268d 100644 --- a/src/town_type.h +++ b/src/town_type.h @@ -105,7 +105,7 @@ enum TownFounding { /** It needs to be 8bits, because we save and load it as such */ typedef SimpleTinyEnumT<TownFounding, byte> TownFoundingByte; -static const uint MAX_LENGTH_TOWN_NAME_CHARS = 31; ///< The maximum length of a town name in characters including '\0' +static const uint MAX_LENGTH_TOWN_NAME_CHARS = 32; ///< The maximum length of a town name in characters including '\0' static const uint MAX_LENGTH_TOWN_NAME_PIXELS = 130; ///< The maximum length of a town name in pixels #endif /* TOWN_TYPE_H */ |