From b59f229723e9cf82f85287dcbe80028384799183 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sun, 7 May 2023 19:38:28 +0100 Subject: [PATCH] TBTR: Remove unnecessary variable --- src/tbtr_template_gui_main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tbtr_template_gui_main.cpp b/src/tbtr_template_gui_main.cpp index 0b7338e9f1..df83dcfb3b 100644 --- a/src/tbtr_template_gui_main.cpp +++ b/src/tbtr_template_gui_main.cpp @@ -403,8 +403,7 @@ public: this->ToggleWidgetLoweredState(TRW_WIDGET_TMPL_BUTTONS_CLONE); if (this->IsWidgetLowered(TRW_WIDGET_TMPL_BUTTONS_CLONE)) { - static const CursorID clone_icon = SPR_CURSOR_CLONE_TRAIN; - SetObjectToPlaceWnd(clone_icon, PAL_NONE, HT_VEHICLE, this); + SetObjectToPlaceWnd(SPR_CURSOR_CLONE_TRAIN, PAL_NONE, HT_VEHICLE, this); } else { ResetObjectToPlace(); }