From 1d3b7c95cbe111fe0191cea62374fb3630f2e202 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 2 Jun 2019 14:40:29 +0300 Subject: [PATCH] Fix a bug in the prefix version of vector compose function --- source/linal/vector.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/linal/vector.h b/source/linal/vector.h index c9b2a17..767cc88 100644 --- a/source/linal/vector.h +++ b/source/linal/vector.h @@ -174,9 +174,9 @@ template inline Vector compose(T s, const Vector &v) { Vector r; + r[0] = s; for(unsigned i=0; i