summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/list.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/list.h b/core/list.h
index da201e9868..448be4a5ab 100644
--- a/core/list.h
+++ b/core/list.h
@@ -306,6 +306,8 @@ public:
if (!p_element->next_ptr) {
_data->last = n;
+ } else {
+ p_element->next_ptr->prev_ptr = n;
}
p_element->next_ptr = n;
@@ -330,6 +332,8 @@ public:
if (!p_element->prev_ptr) {
_data->first = n;
+ } else {
+ p_element->prev_ptr->next_ptr = n;
}
p_element->prev_ptr = n;