ソースを参照

-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;
         }