mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2025-01-22 10:21:57 -05:00
Merge pull request #23680 from ZehMatt/fix-widget-access
Fix widget access
This commit is contained in:
commit
b9486b9eb7
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue