mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
Fix crash when removing routing restriction with reserve through from tunnel/bridge
This commit is contained in:
parent
ac1071f4fc
commit
b3a8dd44e4
@ -1416,7 +1416,9 @@ bool TraceRestrictRemoveProgramMapping(TraceRestrictRefId ref)
|
|||||||
TraceRestrictRemoveProgramMapping(const_cast<const TraceRestrictProgram *>(prog)->GetRefIdsPtr()[0]);
|
TraceRestrictRemoveProgramMapping(const_cast<const TraceRestrictProgram *>(prog)->GetRefIdsPtr()[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (update_reserve_through) UpdateSignalReserveThroughBit(tile, track, true);
|
if (update_reserve_through && IsTileType(tile, MP_RAILWAY)) {
|
||||||
|
UpdateSignalReserveThroughBit(tile, track, true);
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user