From 11e04ec1136f9cd37817a2e129770fe463f2aea1 Mon Sep 17 00:00:00 2001 From: grorp Date: Wed, 13 Nov 2024 14:23:13 +0100 Subject: [PATCH] Replace forgotten SEvent memset --- irr/src/CIrrDeviceSDL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irr/src/CIrrDeviceSDL.cpp b/irr/src/CIrrDeviceSDL.cpp index 60cf54d04..408027761 100644 --- a/irr/src/CIrrDeviceSDL.cpp +++ b/irr/src/CIrrDeviceSDL.cpp @@ -713,7 +713,7 @@ bool CIrrDeviceSDL::run() while (!Close && wrap_PollEvent(&SDL_event)) { // os::Printer::log("event: ", core::stringc((int)SDL_event.type).c_str(), ELL_INFORMATION); // just for debugging - memset(&irrevent, 0, sizeof(irrevent)); + irrevent = {}; switch (SDL_event.type) { case SDL_MOUSEMOTION: {