var\r
p:tlinklist2;\r
begin\r
- if (newptr=baseptr) or assigned(newptr.prev) then raise exception.create('linklist2 double insertion detected');\r
+ if (newptr=baseptr) or assigned(newptr.prev2) then raise exception.create('linklist2 double insertion detected');\r
p := baseptr;\r
baseptr := newptr;\r
baseptr.prev2 := nil;\r