summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKUDr <kudr@openttd.org>2006-11-30 19:37:16 +0000
committerKUDr <kudr@openttd.org>2006-11-30 19:37:16 +0000
commit952cb2ee5c598fbefc1fd4a71307ed3b8caaef76 (patch)
tree2abd07acb59cbd609feb98f9edbd1c18f3c13d0d
parent0b77d5176221236e2f5fa632a8a0b97c2d77919c (diff)
downloadopenttd-952cb2ee5c598fbefc1fd4a71307ed3b8caaef76.tar.xz
(svn r7306) -Codechange: constness (Darkvater)
-rw-r--r--build_vehicle_gui.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/build_vehicle_gui.c b/build_vehicle_gui.c
index b20303f7c..4d7f7542a 100644
--- a/build_vehicle_gui.c
+++ b/build_vehicle_gui.c
@@ -319,14 +319,14 @@ static void GenerateBuildList(Window *w)
}
}
-static inline const EngineID *GetEngineArray(Window *w)
+static inline const EngineID *GetEngineArray(const Window *w)
{
- return WP(w, buildvehicle_d).eng_list;
+ return WP(w, const buildvehicle_d).eng_list;
}
-static inline uint16 GetEngineArrayLength(Window *w)
+static inline uint16 GetEngineArrayLength(const Window *w)
{
- return EngList_Count(&WP(w, buildvehicle_d).eng_list);
+ return EngList_Count(&WP(w, const buildvehicle_d).eng_list);
}
static void DrawBuildAircraftWindow(Window *w)