Browse Source

Fix a copy/paste issue failing to normalize a vec3f when only its y component isn’t zero.

Emmanuel Gil Peyrot 9 years ago
parent
commit
1680dc406d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/omath.c

+ 1 - 1
src/omath.c

@@ -19,7 +19,7 @@ float ovec3f_get_length(const vec3f* me)
 
 void ovec3f_normalize_me(vec3f* me)
 {
-	if(me->x == 0 && me->x == 0 && me->z == 0)
+	if(me->x == 0 && me->y == 0 && me->z == 0)
 		return;
 
 	float len = ovec3f_get_length(me);