Allow seeking to end of datapack (#687)

This commit is contained in:
Asher Baker 2017-09-19 23:27:35 +01:00 committed by GitHub
parent 79ba2835f6
commit 4e996a116d

View File

@ -185,7 +185,7 @@ size_t CDataPack::GetPosition() const
bool CDataPack::SetPosition(size_t pos) const bool CDataPack::SetPosition(size_t pos) const
{ {
if (pos > m_size-1) if (pos > m_size)
{ {
return false; return false;
} }