From e6904b750efffe21543579f0963d38a16c894b96 Mon Sep 17 00:00:00 2001 From: ian Date: Sat, 13 May 2006 18:10:25 +0000 Subject: [PATCH] fix invert_count misdimension --- hostside/safety.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hostside/safety.c b/hostside/safety.c index 935a0ab..d9b48ae 100644 --- a/hostside/safety.c +++ b/hostside/safety.c @@ -19,7 +19,7 @@ typedef struct { TrainNum tran; /* modified in place by lay_train_pass: */ ErrorCode ec; - int invert_count[1]; /* count of (switchable) segments, + int invert_count[2]; /* count of (switchable) segments, * invert_count[0]: inverted from train's pov * iff train is backwards (ie, train not inverted) * invert_count[1]: train is inverted -- 2.30.2