diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-10-19 18:48:34 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-10-19 18:48:34 -0300 |
commit | 2b12a8109dda1f47f9b75a5de91d7d00c1f25869 (patch) | |
tree | 3f3775c304e76ea2776d336c9a471d99359872c0 /core/list.h | |
parent | 5d86a25f4d04b21559f0d4edbd4e70dc01ea6685 (diff) | |
parent | 0a02c28b2be8e8271d5f3ffb95a4b09f91c3bd32 (diff) |
Merge branch 'master' of https://github.com/okamstudio/godot
Diffstat (limited to 'core/list.h')
-rw-r--r-- | core/list.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/core/list.h b/core/list.h index 6deb150ef6..018abca940 100644 --- a/core/list.h +++ b/core/list.h @@ -518,10 +518,16 @@ public: if (value->prev_ptr) { value->prev_ptr->next_ptr = value->next_ptr; - }; + } + else { + _data->first = value->next_ptr; + } if (value->next_ptr) { value->next_ptr->prev_ptr = value->prev_ptr; - }; + } + else { + _data->last = value->prev_ptr; + } value->next_ptr = where; if (!where) { |