1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 22:34:33 +01:00

Fix #17600: Notifications aren't cleared on park load (#17705)

When loading a save using the New Save Format (.park files), the notification (news) list is not properly terminated and is preserving previously loaded news from other save files, including the main menu ones.
This commit is contained in:
leoleotte
2022-08-06 10:42:07 -03:00
committed by GitHub
parent c1f84527e2
commit 863892391d
2 changed files with 5 additions and 0 deletions

View File

@@ -27,6 +27,7 @@
- Fix: [#17542] Stalls will autorotate towards paths outside the park.
- Fix: [#17553] Crash when moving invention list items to empty list.
- Fix: [#17571] All researched tracked rides show up as new vehicles in .park scenarios.
- Fix: [#17600] Notifications are not properly cleared when loading a park.
- Fix: [#17605] Crash when opening parks which have had objects removed externally.
- Fix: [#17639] When building upside down, the special elements list contains many items twice (original bug).

View File

@@ -927,6 +927,10 @@ namespace OpenRCT2
{
gNewsItems[offset + i] = archived[i];
}
// Still need to set the correct type to properly terminate the queue
if (archived.size() < News::MaxItemsArchive)
gNewsItems[offset + archived.size()].Type = News::ItemType::Null;
}
else
{