diff --git a/scripts/yyInstance.js b/scripts/yyInstance.js index 1d8dc5ce..a99b3dd7 100644 --- a/scripts/yyInstance.js +++ b/scripts/yyInstance.js @@ -124,7 +124,7 @@ function yyInstance( _xx, _yy, _id, _objectind, _AddObjectLink, _create_dummy this.fOutsideRoom = false; this.fInSequence = false; this.fOwnedBySequence = false; - this.m_pControllingSeqInst = null; + this.m_pControllingSeqInst = undefined; this.fControlledBySequence = false; this.fDrawnBySequence = true; diff --git a/scripts/yySequence.js b/scripts/yySequence.js index 706a558f..4223d567 100644 --- a/scripts/yySequence.js +++ b/scripts/yySequence.js @@ -6681,7 +6681,7 @@ CSequenceInstance.prototype.CleanupInstances = function () { pInst.SetInSequence(false); pInst.SetControlledBySequence(false); - pInst.SetControllingSeqInst(null); + pInst.SetControllingSeqInst(undefined); if (pInstInfo.ownedBySequence == true) { @@ -6753,7 +6753,7 @@ CSequenceInstance.prototype.SetInstanceInSequenceStatus = function (_inSequence) } else { - pInst.SetControllingSeqInst(null); + pInst.SetControllingSeqInst(undefined); } } }