Skip to content

Commit

Permalink
Merge pull request #2919 from lioncash/vec
Browse files Browse the repository at this point in the history
Vec3: Remove a memset call on the this pointer.
  • Loading branch information
lioncash committed Aug 28, 2015
2 parents b11de5b + e787501 commit a6bd2fe
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Source/Core/VideoBackends/Software/Vec3.h
Expand Up @@ -150,15 +150,14 @@ class Vec3

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)
Expand Down

0 comments on commit a6bd2fe

Please sign in to comment.