瀏覽代碼

Fix to serialisation of InList

Kenric Nugteren 2 年之前
父節點
當前提交
760f4e8ba2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      InABox.Core/Filter.cs

+ 1 - 1
InABox.Core/Filter.cs

@@ -1160,7 +1160,7 @@ namespace InABox.Core
             if (value is null)
             {
             }
-            else if(value is object[] objArr)
+            else if(value.GetType() == typeof(object[]) && value is object[] objArr)
             {
                 writer.Write(objArr.Length);
                 foreach (var item in objArr)