From fcc159ab6ca854e8a3fbde8ab7208d56a6b88b06 Mon Sep 17 00:00:00 2001 From: PopSlime Date: Sat, 12 Nov 2022 01:02:30 +0800 Subject: [PATCH] Code cleanup. --- Assets/Cryville/Crtr/InputProxy.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Cryville/Crtr/InputProxy.cs b/Assets/Cryville/Crtr/InputProxy.cs index 5297f34..a0df3f1 100644 --- a/Assets/Cryville/Crtr/InputProxy.cs +++ b/Assets/Cryville/Crtr/InputProxy.cs @@ -127,7 +127,7 @@ namespace Cryville.Crtr { float ft, tt = (float)vec.Time; if (!_vect.TryGetValue(id, out ft)) ft = tt; if (vec.IsNull) { - _etor.ContextCascadeUpdate(_var_value, new PropSrc.Arbitrary(PdtInternalType.Null, new byte[0])); + _etor.ContextCascadeUpdate(_var_value, new PropSrc.Arbitrary(PdtInternalType.Null, _nullvalue)); } else { fixed (byte* ptr = _vecbuf) { @@ -157,7 +157,7 @@ namespace Cryville.Crtr { else { var pid = new ProxiedInputIdentifier { Source = id, Target = target }; PropSrc.Arbitrary fv, tv = _etor.ContextCascadeLookup(_var_value); - if (!_vecs.TryGetValue(pid, out fv)) fv = new PropSrc.Arbitrary(PdtInternalType.Null, new byte[0]); + if (!_vecs.TryGetValue(pid, out fv)) fv = new PropSrc.Arbitrary(PdtInternalType.Null, _nullvalue); if (fv.Type != PdtInternalType.Null || tv.Type != PdtInternalType.Null) { if (fv.Type == PdtInternalType.Null) { _activeCounts[id.Source]++;