[ox/fs] Fix PathIterator::valid to check iterator against max size

This commit is contained in:
Gary Talent 2018-07-30 21:01:07 -05:00
parent de2e1bd1d6
commit 00339ee4fd

View File

@ -178,7 +178,7 @@ bool PathIterator::hasNext() const {
} }
bool PathIterator::valid() const { bool PathIterator::valid() const {
return m_path[m_iterator] != 0; return m_iterator < m_maxSize && m_path[m_iterator] != 0;
} }
PathIterator PathIterator::operator+(int i) const { PathIterator PathIterator::operator+(int i) const {