소스 검색

vector_math: Add missing member in Vec4's SetZero function

Lioncash 10 년 전
부모
커밋
1400aeceac
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  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)