mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
Fix 8d62a8f0
: Road stop variable 6B crashing for road stop preview in GUI
This commit is contained in:
parent
2c5502dc2d
commit
474d90ec40
@ -223,6 +223,7 @@ uint32_t RoadStopScopeResolver::GetVariable(uint16_t variable, uint32_t paramete
|
||||
|
||||
/* 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;
|
||||
|
Loading…
Reference in New Issue
Block a user