mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r7306) -Codechange: constness (Darkvater)
This commit is contained in:
parent
b6854d7e21
commit
4f8f438ea4
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user