- Favour value initialisation in GameInput::Clear() instead of a memset().

This commit is contained in:
Mitchell Richters 2023-09-27 21:13:05 +10:00
parent 7fa5df934b
commit 59acdde9c9

View file

@ -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.