aboutsummaryrefslogtreecommitdiff
path: root/advtrains/path.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2019-01-22 00:06:59 +0100
committerorwell96 <orwell@bleipb.de>2019-01-22 00:06:59 +0100
commit1965e846b6c61958063ea13e2ac88ae18b701d09 (patch)
treee89e56d75cac0c609c88ffea379827ac440ab190 /advtrains/path.lua
parent85f1600f53fb9beac4fa2cf29222a63d3fe470c7 (diff)
downloadadvtrains-1965e846b6c61958063ea13e2ac88ae18b701d09.tar.gz
advtrains-1965e846b6c61958063ea13e2ac88ae18b701d09.tar.bz2
advtrains-1965e846b6c61958063ea13e2ac88ae18b701d09.zip
Debugging code to trace down path_invalidate within callbacks error
Diffstat (limited to 'advtrains/path.lua')
-rw-r--r--advtrains/path.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/advtrains/path.lua b/advtrains/path.lua
index a0bcd04..92ad8c1 100644
--- a/advtrains/path.lua
+++ b/advtrains/path.lua
@@ -117,6 +117,7 @@ function advtrains.path_invalidate(train)
train.path_req_b=0
train.dirty = true
+ advtrains.dbg_last_pathclear = "LAST PATH_INVALIDATE: "..debug.traceback()
end
-- Prints a path using the passed print function