fix: parentLocked randomly getting set because it was not initialized
This commit is contained in:
parent
da1f6b1d24
commit
5e6c18259f
|
@ -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*);
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue