summaryrefslogtreecommitdiff
path: root/ZAPD/ZCollision.h
diff options
context:
space:
mode:
authorEllipticEllipsis <73679967+EllipticEllipsis@users.noreply.github.com>2021-10-20 22:55:55 +0100
committerGitHub <noreply@github.com>2021-10-20 17:55:55 -0400
commit4f7b8393ec8a3abd59649c2ba669e951fb61f3d2 (patch)
treee1472181845acc8ca5f41bdef761b31648f8a7cb /ZAPD/ZCollision.h
parent6f744be6bcec9ebf4bc852d00f3535e6f2352939 (diff)
Plug some large leaks, deprecate `Segment="128"` (#204)
* Fix freeing an uninitialised camData * exporter leaks * vtx leak fix * Fix ZSkeleton OOB reading * Improve segment assignment checking and add a default Also prevents non-segmented files not being freed * Plug leak in MakeDlist * More segment improvements: deprecate 128 * add externalfile to extraction reference * whoops * format * Document new Segment behaviour * Use deprecation ifdef Co-authored-by: angie <angheloalf95@gmail.com>
Diffstat (limited to 'ZAPD/ZCollision.h')
-rw-r--r--ZAPD/ZCollision.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ZAPD/ZCollision.h b/ZAPD/ZCollision.h
index 0c6710e..d0325bf 100644
--- a/ZAPD/ZCollision.h
+++ b/ZAPD/ZCollision.h
@@ -82,7 +82,7 @@ public:
std::vector<PolygonEntry> polygons;
std::vector<uint64_t> polygonTypes;
std::vector<WaterBoxHeader> waterBoxes;
- CameraDataList* camData;
+ CameraDataList* camData = nullptr;
ZCollisionHeader(ZFile* nParent);
~ZCollisionHeader();