diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2008-09-24 19:31:37 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2008-09-24 19:31:37 +0000 |
| commit | 1ca201c4151ce6e4ac4921c641fec7d21d64752c (patch) | |
| tree | c8e6a63ec39a979fa8706284b43efd5b2d69e17f /src/array.h | |
| parent | dea750e9470f1be61f8afd3eb0ee45a57ed4976a (diff) | |
| download | libbu++-1ca201c4151ce6e4ac4921c641fec7d21d64752c.tar.gz libbu++-1ca201c4151ce6e4ac4921c641fec7d21d64752c.tar.bz2 libbu++-1ca201c4151ce6e4ac4921c641fec7d21d64752c.tar.xz libbu++-1ca201c4151ce6e4ac4921c641fec7d21d64752c.zip | |
Something may be wrong.
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; |
