diff --git a/C/exec.c b/C/exec.c index f671f4ee2..82a869124 100644 --- a/C/exec.c +++ b/C/exec.c @@ -1474,7 +1474,7 @@ clean_trail(Term t) /* so the next cell is the old value */ #ifdef FROZEN_STACKS --pt1; - pt[0] = TrailVal(pt0); + pt[0] = TrailVal(pt1); #else pt[0] = TrailTerm(pt1-1); pt1 -= 3;