aboutsummaryrefslogtreecommitdiff
path: root/advtrains_interlocking
diff options
context:
space:
mode:
Diffstat (limited to 'advtrains_interlocking')
-rw-r--r--advtrains_interlocking/database.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/advtrains_interlocking/database.lua b/advtrains_interlocking/database.lua
index e2c9edc..82c7e25 100644
--- a/advtrains_interlocking/database.lua
+++ b/advtrains_interlocking/database.lua
@@ -431,7 +431,9 @@ end
function ildb.remove_tcb(pos)
local pts = advtrains.roundfloorpts(pos)
- if not track_circuit_breaks[pts] then return end
+ if not track_circuit_breaks[pts] then
+ return true --FIX: not an error, because tcb is already removed
+ end
for connid=1,2 do
if not ildb.remove_from_interlocking({p=pos, s=connid}) then
return false