mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-16 11:33:03 +01:00
Fix invalid tile reference
This commit is contained in:
@@ -1004,7 +1004,7 @@ void tile_element_remove(TileElement* tileElement)
|
||||
(tileElement - 1)->SetLastForTile(true);
|
||||
tileElement->base_height = MAX_ELEMENT_HEIGHT;
|
||||
|
||||
if ((tileElement + 1) == &_tileElements[_tileElements.size()])
|
||||
if (tileElement == &_tileElements.back())
|
||||
{
|
||||
_tileElements.pop_back();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user