aboutsummaryrefslogtreecommitdiff
path: root/src/containers.hh
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-07-16 17:22:39 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-07-16 17:22:39 -0300
commit6d498fe17dab48cfd8fc8a4da62a573b799e10ba (patch)
tree1c8d55bd907b35abf014385dbedb90b2ae98f96a /src/containers.hh
parente65dc561acab7a9e49f59777f16cb040c574c64d (diff)
downloadgame-6d498fe17dab48cfd8fc8a4da62a573b799e10ba.tar.gz
game-6d498fe17dab48cfd8fc8a4da62a573b799e10ba.zip
fix most init and parsing bugs + critical bug with dynamic strings
With an appropriate query manager, the server now starts up and seems to work but won't properly handle connections until we fix the problem with threads and signals described in `TODO.md`.
Diffstat (limited to 'src/containers.hh')
-rw-r--r--src/containers.hh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/containers.hh b/src/containers.hh
index 1ff9896..25a368f 100644
--- a/src/containers.hh
+++ b/src/containers.hh
@@ -323,9 +323,11 @@ struct matrix3d{
this->xmin = xmin;
this->ymin = ymin;
+ this->zmin = zmin;
this->dx = dx;
this->dy = dy;
- this->entry = new T[dx * dy];
+ this->dz = dz;
+ this->entry = new T[dx * dy * dz];
}
matrix3d(int xmin, int xmax, int ymin, int ymax, int zmin, int zmax, T init)