From 6d3ba9484472d090532434e53667c096652149ce Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期五, 25 九月 2020 09:56:14 +0800
Subject: [PATCH] 202009251

---
 HDL_ON/Entity/Function/Light.cs |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/HDL_ON/Entity/Function/Light.cs b/HDL_ON/Entity/Function/Light.cs
index 0a95c65..1002d80 100644
--- a/HDL_ON/Entity/Function/Light.cs
+++ b/HDL_ON/Entity/Function/Light.cs
@@ -105,7 +105,9 @@
                         function.Add(trait_fadeTime);
                     }
                 }
-                return Convert.ToInt32(trait_fadeTime.value);
+                int result = 0;
+                int.TryParse(trait_fadeTime.value.ToString(), out result);
+                return result;
             }
             set
             {

--
Gitblit v1.8.0