From 9b75643cca7b1f2ba1867894dfa5555a07e7f50f Mon Sep 17 00:00:00 2001 From: past-due <30942300+past-due@users.noreply.github.com> Date: Fri, 25 Oct 2024 13:09:31 -0400 Subject: [PATCH] Fix: Transporter timer capacity label area should be clickable --- src/mission.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mission.cpp b/src/mission.cpp index 4c513f5b95f..949066f4a03 100644 --- a/src/mission.cpp +++ b/src/mission.cpp @@ -2024,10 +2024,12 @@ bool intAddTransporterTimer() sLabInit.height = 16; sLabInit.pText = WzString::fromUtf8("00/10"); sLabInit.pCallback = intUpdateTransCapacity; - if (!widgAddLabel(psWScreen, &sLabInit)) + auto psCapacityLabel = widgAddLabel(psWScreen, &sLabInit); + if (!psCapacityLabel) { return false; } + psCapacityLabel->setTransparentToMouse(true); return true; }