Explorar el Código

-fixed Vector.sum()

Anton Rohr hace 11 años
padre
commit
e51fa6ce89
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;
         }