aboutsummaryrefslogtreecommitdiff
path: root/advtrains/debugringbuffer.lua
diff options
context:
space:
mode:
Diffstat (limited to 'advtrains/debugringbuffer.lua')
-rw-r--r--advtrains/debugringbuffer.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/advtrains/debugringbuffer.lua b/advtrains/debugringbuffer.lua
index 704c0c5..bdb4a3a 100644
--- a/advtrains/debugringbuffer.lua
+++ b/advtrains/debugringbuffer.lua
@@ -24,7 +24,10 @@ function advtrains.drb_dump(tid)
return
end
repeat
- atdebug(ringbufs[tid][ringbufcnt[tid]])
+ local t = ringbufs[tid][ringbufcnt[tid]]
+ if t then
+ atdebug(t)
+ end
ringbufcnt[tid]=ringbufcnt[tid]+1
if ringbufcnt[tid] > ringbuflen then
ringbufcnt[tid]=0