Fixed crash in LinkedListElement, thx Alexsot
--HG-- branch : trunk
This commit is contained in:
@@ -37,8 +37,8 @@ class LinkedListElement
|
||||
LinkedListElement() { iNext = NULL; iPrev = NULL; }
|
||||
~LinkedListElement() { delink(); }
|
||||
|
||||
bool hasNext() const { return(iNext->iNext != NULL); }
|
||||
bool hasPrev() const { return(iPrev->iPrev != NULL); }
|
||||
bool hasNext() const { return(iNext && iNext->iNext != NULL); }
|
||||
bool hasPrev() const { return(iPrev && iPrev->iPrev != NULL); }
|
||||
bool isInList() const { return(iNext != NULL && iPrev != NULL); }
|
||||
|
||||
LinkedListElement * next() { return hasNext() ? iNext : NULL; }
|
||||
|
||||
Reference in New Issue
Block a user