diff options
author | peter1138 <peter1138@openttd.org> | 2007-08-03 09:08:49 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2007-08-03 09:08:49 +0000 |
commit | 616eb4134eac435bea86d738475f718309f7c5ea (patch) | |
tree | b6337974657d183b3d4648de552643ab63470cc7 /src/openttd.h | |
parent | d6c915e6a631b76bcb1459f2509a142298a2daf8 (diff) | |
download | openttd-616eb4134eac435bea86d738475f718309f7c5ea.tar.xz |
(svn r10762) -Codechange: Change enum StringIDEnum { to static const StringID = for
each STR_ entry. This avoids the need for a cast to StringID in some
places and thus better type-safety.
Diffstat (limited to 'src/openttd.h')
-rw-r--r-- | src/openttd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openttd.h b/src/openttd.h index 7daf5b772..9fa72e915 100644 --- a/src/openttd.h +++ b/src/openttd.h @@ -51,7 +51,7 @@ struct PalSpriteID { typedef uint16 EngineID; typedef uint16 UnitID; typedef uint16 StringID; -#define INVALID_STRING_ID 0xFFFF +static const StringID INVALID_STRING_ID = 0xFFFF; typedef EngineID *EngineList; ///< engine list type placeholder acceptable for C code (see helpers.cpp) |