0
0
Fork 0
mirror of https://github.com/ZDoom/Raze.git synced 2025-03-01 06:31:03 +00:00

- 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. // Clear all values within this object.
void Clear() void Clear()
{ {
memset(this, 0, sizeof(*this)); *this = {};
} }
// Receives mouse input from OS for processing. // Receives mouse input from OS for processing.