mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-06 06:32:56 +01:00
Fix #13871: Crash on banner window invalidation
This commit is contained in:
@@ -275,7 +275,7 @@ static void window_banner_invalidate(rct_window* w)
|
||||
|
||||
// Scenery item not sure why we use this instead of banner?
|
||||
rct_scenery_entry* sceneryEntry = get_banner_entry(banner->type);
|
||||
if (sceneryEntry->banner.flags & BANNER_ENTRY_FLAG_HAS_PRIMARY_COLOUR)
|
||||
if (sceneryEntry != nullptr && (sceneryEntry->banner.flags & BANNER_ENTRY_FLAG_HAS_PRIMARY_COLOUR))
|
||||
{
|
||||
colour_btn->type = WindowWidgetType::ColourBtn;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user