(svn r10603) -Codechange: avoid direct access to _engine_info

This commit is contained in:
peter1138
2007-07-17 06:56:09 +00:00
parent 45b0b7755d
commit 61e41b24b4
3 changed files with 3 additions and 3 deletions

View File

@@ -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);