diff --git a/src/matrix.h b/src/matrix.h index 89d9fa7d..26d11cf4 100644 --- a/src/matrix.h +++ b/src/matrix.h @@ -66,6 +66,8 @@ namespace lol Vec##dest ret; \ for (int n = 0; n < elems && n < dest; n++) \ ret[n] = (*this)[n]; \ + for (int n = elems; n < dest; n++) \ + ret[n] = 0; \ return ret; \ }