SDL: set default for ActiveIcon

getActiveIcon() may be called before ActiveIcon
is initialized, leading to undefined behavior.
This commit is contained in:
Fatih Uzunoglu 2024-02-11 19:21:06 +02:00 committed by sfan5
parent 6779ac83f9
commit 330150854b

@ -260,7 +260,7 @@ namespace irr
} }
}; };
std::vector<std::unique_ptr<SDL_Cursor, CursorDeleter>> Cursors; std::vector<std::unique_ptr<SDL_Cursor, CursorDeleter>> Cursors;
gui::ECURSOR_ICON ActiveIcon; gui::ECURSOR_ICON ActiveIcon = gui::ECURSOR_ICON::ECI_NORMAL;
}; };
private: private: