From bb27f80a65b96575308c40b401bec194594b5b1c Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 28 Aug 2015 14:10:07 -0400 Subject: [PATCH] Vec3: Remove a memset call on the this pointer --- Source/Core/VideoBackends/Software/Vec3.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Core/VideoBackends/Software/Vec3.h b/Source/Core/VideoBackends/Software/Vec3.h index a5857ffbd6..1337ed77c4 100644 --- a/Source/Core/VideoBackends/Software/Vec3.h +++ b/Source/Core/VideoBackends/Software/Vec3.h @@ -158,7 +158,9 @@ public: void SetZero() { - memset((void*)this, 0, sizeof(float) * 3); + x = 0.0f; + y = 0.0f; + z = 0.0f; } void DoState(PointerWrap &p)