diff options
Diffstat (limited to 'depot_gui.c')
-rw-r--r-- | depot_gui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/depot_gui.c b/depot_gui.c index c3b1c1988..d4dab78af 100644 --- a/depot_gui.c +++ b/depot_gui.c @@ -652,9 +652,9 @@ static void DepotWndProc(Window *w, WindowEvent *e) case DEPOT_WIDGET_CLONE: // Clone button InvalidateWidget(w, DEPOT_WIDGET_CLONE); - TOGGLEBIT(w->click_state, DEPOT_WIDGET_CLONE); + ToggleWidgetLoweredState(w, DEPOT_WIDGET_CLONE); - if (HASBIT(w->click_state, DEPOT_WIDGET_CLONE)) { + if (IsWindowWidgetLowered(w, DEPOT_WIDGET_CLONE)) { _place_clicked_vehicle = NULL; SetObjectToPlaceWnd(SPR_CURSOR_CLONE, VHM_RECT, w); } else { |