[Bf-blender-cvs] [169bb4b9ce1] master: BLI: fix mistake in move constructor of Stack
Jacques Lucke
noreply at git.blender.org
Sat Jul 4 17:29:50 CEST 2020
Commit: 169bb4b9ce19dd47439022172e47af2df8e47338
Author: Jacques Lucke
Date: Sat Jul 4 17:28:05 2020 +0200
Branches: master
https://developer.blender.org/rB169bb4b9ce19dd47439022172e47af2df8e47338
BLI: fix mistake in move constructor of Stack
===================================================================
M source/blender/blenlib/BLI_stack.hh
===================================================================
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_;
More information about the Bf-blender-cvs
mailing list