diff options
Diffstat (limited to '')
-rw-r--r-- | src/array.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/array.h b/src/array.h index 9233875..e8d8b30 100644 --- a/src/array.h +++ b/src/array.h | |||
@@ -157,6 +157,8 @@ namespace Bu | |||
157 | src( src ), | 157 | src( src ), |
158 | iPos( iPos ) | 158 | iPos( iPos ) |
159 | { | 159 | { |
160 | if( this->iPos >= src.getSize() ) | ||
161 | this->iPos = -1; | ||
160 | } | 162 | } |
161 | 163 | ||
162 | MyType &src; | 164 | MyType &src; |
@@ -218,6 +220,8 @@ namespace Bu | |||
218 | src( src ), | 220 | src( src ), |
219 | iPos( iPos ) | 221 | iPos( iPos ) |
220 | { | 222 | { |
223 | if( this->iPos >= src.getSize() ) | ||
224 | this->iPos = -1; | ||
221 | } | 225 | } |
222 | 226 | ||
223 | const MyType &src; | 227 | const MyType &src; |