diff options
| author | Lioncash <mathew1800@gmail.com> | 2015-08-28 15:05:02 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2015-08-28 15:05:02 -0400 |
| commit | a6bd2fea28a82ed156c53b6da6f8db5ca3dce857 (patch) | |
| tree | 21f5028ea89437c4d49ec1db5c8603dfee391410 /Source/Core/VideoBackends | |
| parent | b11de5bddb81a580438da14c82086d5ae4fbace2 (diff) | |
| parent | e7875015288bced00014169d8a826659c1c9405b (diff) | |
Merge pull request #2919 from lioncash/vec
Vec3: Remove a memset call on the this pointer.
Diffstat (limited to 'Source/Core/VideoBackends')
| -rw-r--r-- | Source/Core/VideoBackends/Software/Vec3.h | 9 |
1 files changed, 4 insertions, 5 deletions
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) |
