diff --git a/Assets/Cryville/Crtr/SkinSelectors.cs b/Assets/Cryville/Crtr/SkinSelectors.cs index dceef81..2821ed4 100644 --- a/Assets/Cryville/Crtr/SkinSelectors.cs +++ b/Assets/Cryville/Crtr/SkinSelectors.cs @@ -89,7 +89,7 @@ namespace Cryville.Crtr { else return Enumerable.Empty(); } public override bool IsUpdatable(ContainerState h) { - return h.Handler.OpenedAnchor.Name == Name; + return h.Handler.OpenedAnchor != null && h.Handler.OpenedAnchor.Name == Name; } } public class AtAnchor : SkinSelector { @@ -101,7 +101,7 @@ namespace Cryville.Crtr { return IsUpdatable(h) ? c : null; } public override bool IsUpdatable(ContainerState h) { - return h.Handler.OpenedAnchor.Name == Name; + return h.Handler.OpenedAnchor != null && h.Handler.OpenedAnchor.Name == Name; } } public class Property : SkinSelector {