diff --git a/src/core/smallstack_type.hpp b/src/core/smallstack_type.hpp index 99ad5d1268..35ac0106b1 100644 --- a/src/core/smallstack_type.hpp +++ b/src/core/smallstack_type.hpp @@ -211,7 +211,9 @@ public: _pool.Destroy(this->next); } else { --popped.branch_count; - this->Branch(); + if (popped.next != Tmax_size) { + ++(_pool.Get(popped.next).branch_count); + } } /* Accessing popped here is no problem as the pool will only set * the validity flag, not actually delete the item, on Destroy().