1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Merge pull request #15811 from ZehMatt/fix-15809

Fix #15809: Assign a temporary result to avoid crashes
This commit is contained in:
ζeh Matt
2021-10-27 18:52:44 -07:00
committed by GitHub

View File

@@ -119,6 +119,8 @@ GameActions::Result::Ptr MapCanConstructWithClearAt(
auto res = std::make_unique<GameActions::Result>();
uint8_t groundFlags = ELEMENT_IS_ABOVE_GROUND;
res->SetData(ConstructClearResult{ groundFlags });
bool canBuildCrossing = false;
if (map_is_edge(pos))
{