Sfoglia il codice sorgente

vector_math: Add missing member in Vec4's SetZero function

Lioncash 10 anni fa
parent
commit
1400aeceac
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 4 1
      src/common/vector_math.h

+ 4 - 1
src/common/vector_math.h

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