1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 13:33:02 +01:00

Fix #9411: Ad campaigns end too soon

This commit is contained in:
Gymnasiast
2019-06-12 22:31:16 +02:00
parent 3933e2ffc6
commit 72c4baebda
2 changed files with 2 additions and 0 deletions

View File

@@ -71,6 +71,7 @@ public:
MarketingCampaign campaign{};
campaign.Type = _type;
campaign.WeeksLeft = _numWeeks;
campaign.Flags = MarketingCampaignFlags::FIRST_WEEK;
if (campaign.Type == ADVERTISING_CAMPAIGN_RIDE_FREE || campaign.Type == ADVERTISING_CAMPAIGN_RIDE)
{
campaign.RideId = _item;