[chronojump] Fixed ListCaptured cannot be null now



commit 2082c7835ada4ada92ec62b6970a67b933c9826f
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon Feb 27 20:14:34 2017 +0100

    Fixed ListCaptured cannot be null now

 src/encoderCaptureInertialBG.cs |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/encoderCaptureInertialBG.cs b/src/encoderCaptureInertialBG.cs
index 799cd25..e76e431 100644
--- a/src/encoderCaptureInertialBG.cs
+++ b/src/encoderCaptureInertialBG.cs
@@ -111,12 +111,13 @@ public static class EncoderCaptureInertialBackgroundStatic
        public static void Start()
        {
                abort = false;
+               ListCaptured = new List<int> ();
                Initialize();
        }
 
        public static void Initialize()
        {
-               ListCaptured = new List<int> ();
+               ListCaptured.Clear();
                pos = 0;
        }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]