From 51e5d198fb5b61f16406b14317770465aae6f157 Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Sun, 17 Sep 2017 04:32:25 +0200 Subject: [PATCH] fix message deleting bug --- src/messages/limitedqueue.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);