Skip to content

Commit

Permalink
Merge pull request OpenRCT2#23680 from ZehMatt/fix-widget-access
Browse files Browse the repository at this point in the history
Fix widget access
  • Loading branch information
ZehMatt authored Jan 22, 2025
2 parents a002834 + 87be9f0 commit b9486b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/openrct2-ui/windows/Banner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ namespace OpenRCT2::Ui::Windows

void CreateViewport()
{
const auto& viewportWidget = window_banner_widgets[WIDX_VIEWPORT];
const auto& viewportWidget = widgets[WIDX_VIEWPORT];
ViewportCreate(
this, windowPos + ScreenCoordsXY{ viewportWidget.left + 1, viewportWidget.top + 1 },
(viewportWidget.width()) - 1, (viewportWidget.height()) - 1, Focus(_bannerViewPos));
Expand Down
2 changes: 1 addition & 1 deletion src/openrct2-ui/windows/Finances.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ namespace OpenRCT2::Ui::Windows
// Draw campaign button text
for (int32_t i = 0; i < ADVERTISING_CAMPAIGN_COUNT; i++)
{
auto campaignButton = &_windowFinancesMarketingWidgets[WIDX_CAMPAIGN_1 + i];
auto campaignButton = &widgets[WIDX_CAMPAIGN_1 + i];
if (campaignButton->type != WindowWidgetType::Empty)
{
// Draw button text
Expand Down

0 comments on commit b9486b9

Please sign in to comment.