From 092d8e7937e158a488deda592be001a5d13cf1e2 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Fri, 29 Sep 2023 08:31:03 +1000 Subject: [PATCH] Revert "- Favour value initialisation in `GameInput::Clear()` instead of a `memset()`." This reverts commit 59acdde9c9f3f4b341b31326b70362b970707f34. Apparently this can generate terrible code with MSVC for some reason. --- source/core/gameinput.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/core/gameinput.h b/source/core/gameinput.h index 1fddd662d..3e314b8ce 100644 --- a/source/core/gameinput.h +++ b/source/core/gameinput.h @@ -70,7 +70,7 @@ public: // Clear all values within this object. void Clear() { - *this = {}; + memset(this, 0, sizeof(*this)); } // Receives mouse input from OS for processing.