chiark / gitweb /
actually use FOR_TRAIN initx
authorian <ian>
Sun, 16 Mar 2008 22:00:32 +0000 (22:00 +0000)
committerian <ian>
Sun, 16 Mar 2008 22:00:32 +0000 (22:00 +0000)
hostside/safety.h

index df975447bdbabab17b8df287f04b9f39c3ed3e8a..def129d90b46a159281fb160e7b3d7c4257ec7db 100644 (file)
@@ -214,7 +214,7 @@ const SegmentLinkInfo *trackloc_segmentlink(const TrackLocation *tloc,
        seg##n++, seg++, seg##i++, stepx)
 
 #define FOR_TRAIN(tra, initx, stepx)           \
-  for (tra##n=0, tra=trains;                   \
+  for (tra##n=0, tra=trains, initx;            \
        tra##n < n_trains;                      \
        tra##n++, tra++, stepx)