aboutsummaryrefslogtreecommitdiff
path: root/src/containers.hh
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-06-15 22:25:12 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-06-15 22:25:12 -0300
commit5bdedeecea69a5892e3ce8854e85f78537cf7ca4 (patch)
tree8e3517fea9c641a5f2a10a4d5c98ddb479876f3a /src/containers.hh
parent3cc587ab8df80d42d9dab1a73a37701f565a3499 (diff)
downloadgame-5bdedeecea69a5892e3ce8854e85f78537cf7ca4.tar.gz
game-5bdedeecea69a5892e3ce8854e85f78537cf7ca4.zip
channel functions
Diffstat (limited to 'src/containers.hh')
-rw-r--r--src/containers.hh2
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;
}