1
0
Fork 0

Fix 8d62a8f0: Road stop variable 6B crashing for road stop preview in GUI

pull/12930/head
Jonathan G Rennison 2024-09-06 01:15:25 +01:00
parent c1f8569587
commit 8a3a9af84f
1 changed files with 1 additions and 0 deletions

View File

@ -184,6 +184,7 @@ uint32_t RoadStopScopeResolver::GetVariable(uint8_t variable, [[maybe_unused]] u
/* 16 bit road stop ID of nearby tiles */
case 0x6B: {
if (this->tile == INVALID_TILE) return 0xFFFFFFFF;
TileIndex nearby_tile = GetNearbyTile(parameter, this->tile);
if (!IsAnyRoadStopTile(nearby_tile)) return 0xFFFFFFFF;