summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbriaguya <70942617+briaguya0@users.noreply.github.com>2026-07-20 15:28:54 -0400
committerGitHub <noreply@github.com>2026-07-20 19:28:54 +0000
commitbe1c68a79c2d9a463f1b176b5cc32cf9771bfeaf (patch)
tree751b9fd3978b7e85a86dd8558f2d13f8a1cb900b
parent232d0bee32d34f0a50a906d8515259f909fb5cdc (diff)
initialize some uninitialized things (#37)HEADdevelop
-rw-r--r--ZAPD/OtherStructs/SkinLimbStructs.h4
-rw-r--r--ZAPD/ZRoom/Commands/SetMesh.h6
2 files changed, 5 insertions, 5 deletions
diff --git a/ZAPD/OtherStructs/SkinLimbStructs.h b/ZAPD/OtherStructs/SkinLimbStructs.h
index 0bc35a2..fd26f4d 100644
--- a/ZAPD/OtherStructs/SkinLimbStructs.h
+++ b/ZAPD/OtherStructs/SkinLimbStructs.h
@@ -101,10 +101,10 @@ public:
size_t GetRawDataSize() const override;
public:
- uint16_t totalVtxCount;
+ uint16_t totalVtxCount = 0;
uint16_t limbModifCount; // Length of limbModifications
segptr_t limbModifications; // SkinLimbModif*
- segptr_t dlist; // Gfx*
+ segptr_t dlist = SEGMENTED_NULL; // Gfx*
std::vector<SkinLimbModif> limbModifications_arr;
// ZDisplayList* unk_8_dlist = nullptr;
diff --git a/ZAPD/ZRoom/Commands/SetMesh.h b/ZAPD/ZRoom/Commands/SetMesh.h
index c0f15da..b2779ae 100644
--- a/ZAPD/ZRoom/Commands/SetMesh.h
+++ b/ZAPD/ZRoom/Commands/SetMesh.h
@@ -44,8 +44,8 @@ protected:
class RoomShapeImageMultiBgEntry : public ZResource
{
public:
- uint16_t unk_00;
- uint8_t id;
+ uint16_t unk_00 = 0;
+ uint8_t id = 0;
segptr_t source;
uint32_t unk_0C;
uint32_t tlut;
@@ -141,7 +141,7 @@ public:
class SetMesh : public ZRoomCommand
{
public:
- uint8_t data;
+ uint8_t data = 0;
uint8_t meshHeaderType;
std::shared_ptr<PolygonTypeBase> polyType;