forked from mirror/OpenTTD
(svn r10603) -Codechange: avoid direct access to _engine_info
This commit is contained in:
@@ -279,7 +279,7 @@ static void RoadVehViewWndProc(Window *w, WindowEvent *e)
|
||||
SetWindowWidgetDisabledState(w, 11, !is_localplayer);
|
||||
/* Disable refit button if vehicle not refittable */
|
||||
SetWindowWidgetDisabledState(w, 12, !is_localplayer ||
|
||||
_engine_info[v->engine_type].refit_mask == 0);
|
||||
EngInfo(v->engine_type)->refit_mask == 0);
|
||||
|
||||
/* draw widgets & caption */
|
||||
SetDParam(0, v->index);
|
||||
|
Reference in New Issue
Block a user