PredictUserContext u;
const SegPosCombInfo *pci;
Segment *oldfdet;
- int oldmaxinto;
+ int oldmaxinto, oldfdet_trbackwards;
ErrorCode ec, ec2;
int r;
struct timeval tnow;
/* right, now let's start fiddling */
oldfdet= tra->foredetect;
oldmaxinto= tra->maxinto;
+ oldfdet_trbackwards= tra->foredetect->tr_backwards;
r= trackloc_getlink(&newfdet,&c,&pci,0,-1); assert(!r);
tra->foredetect= oldfdet;
tra->maxinto= oldmaxinto;
tra->backwards ^= 1;
- newfdet.seg->tr_backwards ^= 1; /* in case it's the same as oldfdet */
+ tra->foredetect->tr_backwards= oldfdet_trbackwards;
ec2= predict(tra,tnow, PREDF_OLDPLAN,0,0, 0,0,(char*)"abandon reverse");
assert(!ec2);