1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-18 20:43:04 +01:00

Fix #9402: Ad campaigns disappear when you save and load the game

This commit is contained in:
Gymnasiast
2019-06-12 22:20:00 +02:00
parent b65e243486
commit 3933e2ffc6
2 changed files with 2 additions and 1 deletions

View File

@@ -794,7 +794,7 @@ void S6Exporter::ExportMarketingCampaigns()
std::memset(_s6.campaign_ride_index, 0, sizeof(_s6.campaign_ride_index));
for (const auto& campaign : gMarketingCampaigns)
{
_s6.campaign_weeks_left[campaign.Type] = campaign.WeeksLeft;
_s6.campaign_weeks_left[campaign.Type] = campaign.WeeksLeft | CAMPAIGN_ACTIVE_FLAG;
if (campaign.Type == ADVERTISING_CAMPAIGN_RIDE_FREE || campaign.Type == ADVERTISING_CAMPAIGN_RIDE)
{
_s6.campaign_ride_index[campaign.Type] = campaign.RideId;