edit error handling

This commit is contained in:
Mario Hüttel 2018-08-01 12:42:41 +02:00
parent 299d65aa6c
commit 1a6fdf59ab

View File

@ -50,6 +50,9 @@ void vector_2d_rotate(struct vector_2d *vec, double angle)
double sin_val, cos_val; double sin_val, cos_val;
struct vector_2d temp; struct vector_2d temp;
if (!vec)
return;
sin_val = sin(angle); sin_val = sin(angle);
cos_val = cos(angle); cos_val = cos(angle);