[ox/fs] Fix PathIterator::valid to check iterator against max size
This commit is contained in:
parent
de2e1bd1d6
commit
00339ee4fd
@ -178,7 +178,7 @@ bool PathIterator::hasNext() 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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user