From 59acdde9c9f3f4b341b31326b70362b970707f34 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Wed, 27 Sep 2023 21:13:05 +1000 Subject: [PATCH] - Favour value initialisation in `GameInput::Clear()` instead of a `memset()`. --- 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 e340e1229..f9f401861 100644 --- a/source/core/gameinput.h +++ b/source/core/gameinput.h @@ -70,7 +70,7 @@ public: // Clear all values within this object. void Clear() { - memset(this, 0, sizeof(*this)); + *this = {}; } // Receives mouse input from OS for processing.