From ce4685c64f6ec9a67039639254d7baed9236dca1 Mon Sep 17 00:00:00 2001 From: niu2x Date: Thu, 29 Dec 2016 15:26:25 +0800 Subject: [PATCH] vec4 operator < seems error (#17072) * bug fix * Vec4 operator < --- cocos/math/Vec4.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/math/Vec4.inl b/cocos/math/Vec4.inl index 5a9e061a9d..dc87ffd108 100644 --- a/cocos/math/Vec4.inl +++ b/cocos/math/Vec4.inl @@ -80,7 +80,7 @@ inline bool Vec4::operator<(const Vec4& v) const { if (y == v.y) { - if (z < v.z) + if (z == v.z) { if (w < v.w) {