mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Replace forgotten SEvent memset
This commit is contained in:
@@ -713,7 +713,7 @@ bool CIrrDeviceSDL::run()
|
|||||||
|
|
||||||
while (!Close && wrap_PollEvent(&SDL_event)) {
|
while (!Close && wrap_PollEvent(&SDL_event)) {
|
||||||
// os::Printer::log("event: ", core::stringc((int)SDL_event.type).c_str(), ELL_INFORMATION); // just for debugging
|
// 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) {
|
switch (SDL_event.type) {
|
||||||
case SDL_MOUSEMOTION: {
|
case SDL_MOUSEMOTION: {
|
||||||
|
Reference in New Issue
Block a user