diff --git a/src/messages/limitedqueue.hpp b/src/messages/limitedqueue.hpp index c44c0d6f7..870224143 100644 --- a/src/messages/limitedqueue.hpp +++ b/src/messages/limitedqueue.hpp @@ -47,7 +47,7 @@ public: auto newVector = std::make_shared>(); newVector->reserve(_limit + _buffer); - for (unsigned int i = 0; i < _limit - 1; i++) { + for (unsigned int i = 0; i < _limit; ++i) { newVector->push_back(_vector->at(i + _offset)); } newVector->push_back(item);