浏览代码

-fixed Vector.sum()

Anton Rohr 11 年之前
父节点
当前提交
e51fa6ce89
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      bbiwarg/Utility/Vector.cs

+ 1 - 1
bbiwarg/Utility/Vector.cs

@@ -125,7 +125,7 @@ namespace bbiwarg.Utility
             T result = (dynamic)0;
             for (int i = 0; i < this.length(); i++)
             {
-                result += (dynamic)elements[0];
+                result += (dynamic)elements[i];
             }
             return result;
         }