mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-28 01:04:50 +01:00
Merge pull request #23680 from ZehMatt/fix-widget-access
Fix widget access
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user