rail.h
changeset 2236 55f4d7353f52
parent 2233 146e2e405ec1
child 2254 72f8883ff3ac
--- a/rail.h	Fri Jul 29 21:55:49 2005 +0000
+++ b/rail.h	Fri Jul 29 22:13:04 2005 +0000
@@ -161,7 +161,7 @@
 	byte compatible_railtypes;
 } RailtypeInfo;
 
-RailtypeInfo railtypes[RAILTYPE_END];
+extern const RailtypeInfo _railtypes[RAILTYPE_END];
 
 // these are the maximums used for updating signal blocks, and checking if a depot is in a pbs block
 enum {
@@ -528,10 +528,10 @@
  * @param railtype the rail type which the information is requested for
  * @return The pointer to the RailtypeInfo
  */
-static inline RailtypeInfo *GetRailTypeInfo(RailType railtype)
+static inline const RailtypeInfo *GetRailTypeInfo(RailType railtype)
 {
 	assert(railtype < RAILTYPE_END);
-	return &railtypes[railtype];
+	return &_railtypes[railtype];
 }
 
 /**