(svn r11596) -Codechange: Use the Window member HandleButtonClick and remove its now useless counterpart function
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user