equal
deleted
inserted
replaced
317 |
317 |
318 default: NOT_REACHED(); |
318 default: NOT_REACHED(); |
319 } |
319 } |
320 } |
320 } |
321 |
321 |
322 static inline const EngineID *GetEngineArray(Window *w) |
322 static inline const EngineID *GetEngineArray(const Window *w) |
323 { |
323 { |
324 return WP(w, buildvehicle_d).eng_list; |
324 return WP(w, const buildvehicle_d).eng_list; |
325 } |
325 } |
326 |
326 |
327 static inline uint16 GetEngineArrayLength(Window *w) |
327 static inline uint16 GetEngineArrayLength(const Window *w) |
328 { |
328 { |
329 return EngList_Count(&WP(w, buildvehicle_d).eng_list); |
329 return EngList_Count(&WP(w, const buildvehicle_d).eng_list); |
330 } |
330 } |
331 |
331 |
332 static void DrawBuildAircraftWindow(Window *w) |
332 static void DrawBuildAircraftWindow(Window *w) |
333 { |
333 { |
334 buildvehicle_d *bv = &WP(w, buildvehicle_d); |
334 buildvehicle_d *bv = &WP(w, buildvehicle_d); |