Fix may_modify_section on newly created sections

This commit is contained in:
orwell96 2019-01-22 17:47:43 +01:00
parent 6c18d5b89a
commit 0617a6a1bd
1 changed files with 1 additions and 1 deletions

View File

@ -447,7 +447,7 @@ end
-- - merging and dissolving sections
-- As of now the action will be denied if a route is set or if a train is in the section.
function ildb.may_modify_ts(ts)
if ts.route or ts.route_post or #ts.trains>0 then
if ts.route or ts.route_post or (ts.trains and #ts.trains>0) then
return false
end
return true