(svn r11596) -Codechange: Use the Window member HandleButtonClick and remove its now useless counterpart function

This commit is contained in:
belugas
2007-12-08 03:10:50 +00:00
parent 902b20263c
commit f271038461
8 changed files with 26 additions and 35 deletions

View File

@@ -916,7 +916,7 @@ static void DepotWndProc(Window *w, WindowEvent *e)
if (w->IsWidgetDisabled(e->we.click.widget)) return;
if (WP(w, depot_d).sel == INVALID_VEHICLE) return;
HandleButtonClick(w, e->we.click.widget);
w->HandleButtonClick(e->we.click.widget);
v = GetVehicle(WP(w, depot_d).sel);
WP(w, depot_d).sel = INVALID_VEHICLE;