diff options
Diffstat (limited to 'src/containers.hh')
| -rw-r--r-- | src/containers.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/containers.hh b/src/containers.hh index f82159b..ecbe6be 100644 --- a/src/containers.hh +++ b/src/containers.hh @@ -122,6 +122,8 @@ struct vector{ T Result = {}; if(index >= this->start && index < (this->start + this->space)){ Result = this->entry[index - this->start]; + }else if(this->initialized){ + Result = this->init; } return Result; } |
