From: ian Date: Sat, 13 May 2006 18:10:25 +0000 (+0000) Subject: fix invert_count misdimension X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=e6904b750efffe21543579f0963d38a16c894b96;p=trains.git fix invert_count misdimension --- 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