diff options
author | Jacques Lucke <jacques@blender.org> | 2020-07-04 18:28:05 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-07-04 18:28:25 +0300 |
commit | 169bb4b9ce19dd47439022172e47af2df8e47338 (patch) | |
tree | 13469a7800e0c8970c87ae7cfc1e01fe00e3370b /source/blender/blenlib/BLI_stack.hh | |
parent | 8e97694c8afe7d83cd388218165e878952412168 (diff) |
BLI: fix mistake in move constructor of Stack
Diffstat (limited to 'source/blender/blenlib/BLI_stack.hh')
-rw-r--r-- | source/blender/blenlib/BLI_stack.hh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_stack.hh b/source/blender/blenlib/BLI_stack.hh index 50be9357a01..41c3be87265 100644 --- a/source/blender/blenlib/BLI_stack.hh +++ b/source/blender/blenlib/BLI_stack.hh @@ -174,6 +174,10 @@ class Stack { inline_chunk_.above = other.inline_chunk_.above; size_ = other.size_; + if (inline_chunk_.above != nullptr) { + inline_chunk_.above->below = &inline_chunk_; + } + if (size_ <= InlineBufferCapacity) { top_chunk_ = &inline_chunk_; top_ = this->inline_buffer() + size_; |