From 4e996a116d32d6043518df35bc820de17e15de9a Mon Sep 17 00:00:00 2001 From: Asher Baker Date: Tue, 19 Sep 2017 23:27:35 +0100 Subject: [PATCH] Allow seeking to end of datapack (#687) --- core/logic/CDataPack.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/logic/CDataPack.cpp b/core/logic/CDataPack.cpp index 67ec2146..4c838410 100644 --- a/core/logic/CDataPack.cpp +++ b/core/logic/CDataPack.cpp @@ -185,7 +185,7 @@ size_t CDataPack::GetPosition() const bool CDataPack::SetPosition(size_t pos) const { - if (pos > m_size-1) + if (pos > m_size) { return false; }