(svn r11889) -Change: small inconsistency between documentation and code. Patch by Yexo.
authorrubidium
Thu, 17 Jan 2008 02:10:55 +0000
changeset 8324 a7c29425b7f0
parent 8323 d5531c7645a7
child 8325 deeb58f7bf53
(svn r11889) -Change: small inconsistency between documentation and code. Patch by Yexo.
src/openttd.h
--- a/src/openttd.h	Thu Jan 17 02:10:26 2008 +0000
+++ b/src/openttd.h	Thu Jan 17 02:10:55 2008 +0000
@@ -38,9 +38,9 @@
 /* DestinationID must be at least as large as every these below, because it can
  * be any of them
  */
-assert_compile(sizeof(DestinationID) == sizeof(DepotID));
-assert_compile(sizeof(DestinationID) == sizeof(WaypointID));
-assert_compile(sizeof(DestinationID) == sizeof(StationID));
+assert_compile(sizeof(DestinationID) >= sizeof(DepotID));
+assert_compile(sizeof(DestinationID) >= sizeof(WaypointID));
+assert_compile(sizeof(DestinationID) >= sizeof(StationID));
 
 enum GameModes {
 	GM_MENU,