diff --git a/include/cpp_event_framework/StaticPool.hxx b/include/cpp_event_framework/StaticPool.hxx index ab529f6..a64dbdf 100644 --- a/include/cpp_event_framework/StaticPool.hxx +++ b/include/cpp_event_framework/StaticPool.hxx @@ -108,7 +108,10 @@ public: { last_->next = ptr; } - last_ = ptr; + else + { + last_ = ptr; + } fill_level_++; assert(FillLevel() <= NumElements);