diff --git a/src/vector.c b/src/vector.c index f7aa64c..60d0c10 100644 --- a/src/vector.c +++ b/src/vector.c @@ -156,7 +156,7 @@ bool normalize_vector(vector *a, vector *b) */ bool copy_vector(vector *a, vector *b) { - if (!a || !b) + if (!a || !b || (a == b)) return false; b->x = a->x;