From 330150854b67013073c5c1dd735cf1963592ed81 Mon Sep 17 00:00:00 2001 From: Fatih Uzunoglu Date: Sun, 11 Feb 2024 19:21:06 +0200 Subject: [PATCH] SDL: set default for ActiveIcon getActiveIcon() may be called before ActiveIcon is initialized, leading to undefined behavior. --- source/Irrlicht/CIrrDeviceSDL.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Irrlicht/CIrrDeviceSDL.h b/source/Irrlicht/CIrrDeviceSDL.h index ebd8e03..7b5f011 100644 --- a/source/Irrlicht/CIrrDeviceSDL.h +++ b/source/Irrlicht/CIrrDeviceSDL.h @@ -260,7 +260,7 @@ namespace irr } }; std::vector> Cursors; - gui::ECURSOR_ICON ActiveIcon; + gui::ECURSOR_ICON ActiveIcon = gui::ECURSOR_ICON::ECI_NORMAL; }; private: