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.