fix: parentLocked randomly getting set because it was not initialized

This commit is contained in:
maelstrom 2025-02-04 21:23:49 +01:00
parent da1f6b1d24
commit 5e6c18259f
2 changed files with 2 additions and 2 deletions

View file

@ -38,7 +38,7 @@ private:
bool ancestryContinuityCheck(std::optional<std::shared_ptr<Instance>> newParent); bool ancestryContinuityCheck(std::optional<std::shared_ptr<Instance>> newParent);
protected: protected:
bool parentLocked; bool parentLocked = false;
std::unique_ptr<MemberMap> memberMap; std::unique_ptr<MemberMap> memberMap;
Instance(const InstanceType*); Instance(const InstanceType*);

View file

@ -6,7 +6,7 @@
#include <optional> #include <optional>
#include "physics/simulation.h" #include "physics/simulation.h"
const InstanceType Part::TYPE = { const InstanceType Part::TYPE = {
.super = &Instance::TYPE, .super = &Instance::TYPE,
.className = "Part", .className = "Part",
.constructor = &Part::CreateGeneric, .constructor = &Part::CreateGeneric,