mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-18 12:33:17 +01:00
Fix #14409: NPE when demolishing banner
This commit is contained in:
@@ -172,6 +172,9 @@ public:
|
||||
break;
|
||||
case WIDX_BANNER_DEMOLISH:
|
||||
{
|
||||
if (_banner == nullptr || _tileElement == nullptr)
|
||||
break;
|
||||
|
||||
auto bannerRemoveAction = BannerRemoveAction(
|
||||
{ _banner->position.ToCoordsXY(), _tileElement->GetBaseZ(), _tileElement->GetPosition() });
|
||||
GameActions::Execute(&bannerRemoveAction);
|
||||
|
||||
Reference in New Issue
Block a user