Skip to content

Commit

Permalink
Fix: Transporter timer capacity label area should be clickable
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Oct 25, 2024
1 parent bb62939 commit 9b75643
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mission.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9b75643

Please sign in to comment.