Browse Source

vector_math: Add missing member in Vec4's SetZero function

Lioncash 10 years ago
parent
commit
1400aeceac
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/common/vector_math.h

+ 4 - 1
src/common/vector_math.h

@@ -447,7 +447,10 @@ public:
 
 
     void SetZero()
     void SetZero()
     {
     {
-        x=0; y=0; z=0;
+        x = 0;
+        y = 0;
+        z = 0;
+        w = 0;
     }
     }
 
 
     // Common alias: RGBA (colors)
     // Common alias: RGBA (colors)