diff options
| author | sheepandshepherd | 2015-07-10 21:33:44 +0200 |
|---|---|---|
| committer | sheepandshepherd | 2015-07-10 21:33:44 +0200 |
| commit | db440a2a58a9f783322ffc528fe50e832f5ae50c (patch) | |
| tree | 4a5e34410c811593cc99e0e52adf3ec356eb488c /core/list.h | |
| parent | f697ec2fe022583dde5f3ae650f49cfd7f237c33 (diff) | |
| download | godot-db440a2a58a9f783322ffc528fe50e832f5ae50c.tar.gz godot-db440a2a58a9f783322ffc528fe50e832f5ae50c.tar.zst godot-db440a2a58a9f783322ffc528fe50e832f5ae50c.zip | |
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 6deb150ef..018abca94 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) { |
