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

This commit is contained in:
2007-07-17 06:56:09 +00:00
parent 3dd6362bb8
commit 306c21d6c9
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);