Skip to content

Commit

Permalink
#16: Fixed path structure issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
danports committed May 18, 2020
1 parent 7646457 commit a8a4426
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/railrouter/startup
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ function minecartDetected(detection)
return
end

local edge = path[1]
local edge = next(path.edges)
if edge == nil then
log.warn(string.format("Ignoring detection: Path to destination %s is empty", railnetwork.formatLocation(trip.destination)))
return
Expand Down

0 comments on commit a8a4426

Please sign in to comment.