From a4b8073f048a0d5847ebf1f89f48c9b201aef124 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sun, 2 May 2010 17:04:19 +0000 Subject: Minor bug deleting last element of linked lists. --- src/list.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/list.h b/src/list.h index 3979b63..9b95983 100644 --- a/src/list.h +++ b/src/list.h @@ -171,6 +171,8 @@ namespace Bu pPrev->pNext = pTmp; if( pTmp != NULL ) pTmp->pPrev = pPrev; + else + pLast = pPrev; nSize--; } } -- cgit v1.2.3