mirror of https://github.com/OpenRCT2/OpenRCT2.git
Avoid truncating banner index; check for NULL
This commit is contained in:
parent
2aae1cb84e
commit
841d6a5f24
|
@ -288,7 +288,10 @@ void fix_duplicated_banners()
|
|||
// occupy multiple tiles that should both refer to the same banner index.
|
||||
if (tileElement->GetType() == TILE_ELEMENT_TYPE_BANNER)
|
||||
{
|
||||
uint8_t bannerIndex = tileElement->AsBanner()->GetIndex();
|
||||
auto bannerIndex = tileElement->AsBanner()->GetIndex();
|
||||
if (bannerIndex == BANNER_INDEX_NULL)
|
||||
continue;
|
||||
|
||||
if (activeBanners[bannerIndex])
|
||||
{
|
||||
log_info(
|
||||
|
|
Loading…
Reference in New Issue