diff options
Diffstat (limited to 'advtrains/occupation.lua')
-rw-r--r-- | advtrains/occupation.lua | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/advtrains/occupation.lua b/advtrains/occupation.lua index b4b2bcd..20a986e 100644 --- a/advtrains/occupation.lua +++ b/advtrains/occupation.lua @@ -103,10 +103,7 @@ function o.clear_all_items(train_id, pos) local t = occget(pos) if not t then return end local i = 1 - local grd = 0 while t[i] do - grd=grd+1 - if grd>10000 then error("loop guard occ clearall") end if t[i]==train_id then table.remove(t, i) table.remove(t, i) @@ -119,10 +116,7 @@ function o.clear_specific_item(train_id, pos, index) local t = occget(pos) if not t then return end local i = 1 - local grd = 0 while t[i] do - grd=grd+1 - if grd>10000 then error("loop guard occ clearall") end if t[i]==train_id and t[i+1]==index then table.remove(t, i) table.remove(t, i) |