diff --git a/Source/Core/VideoBackends/Software/Vec3.h b/Source/Core/VideoBackends/Software/Vec3.h index a5857ffbd6..da54327fe2 100644 --- a/Source/Core/VideoBackends/Software/Vec3.h +++ b/Source/Core/VideoBackends/Software/Vec3.h @@ -150,15 +150,14 @@ public: bool operator==(const Vec3 &other) const { - if (x == other.x && y == other.y && z == other.z) - return true; - else - return false; + return x == other.x && y == other.y && z == other.z; } void SetZero() { - memset((void*)this, 0, sizeof(float) * 3); + x = 0.0f; + y = 0.0f; + z = 0.0f; } void DoState(PointerWrap &p)