mirror of
https://github.com/minetest/irrlicht.git
synced 2025-06-28 06:20:21 +02:00
SDL: set default for ActiveIcon
getActiveIcon() may be called before ActiveIcon is initialized, leading to undefined behavior.
This commit is contained in:
@ -260,7 +260,7 @@ namespace irr
|
||||
}
|
||||
};
|
||||
std::vector<std::unique_ptr<SDL_Cursor, CursorDeleter>> Cursors;
|
||||
gui::ECURSOR_ICON ActiveIcon;
|
||||
gui::ECURSOR_ICON ActiveIcon = gui::ECURSOR_ICON::ECI_NORMAL;
|
||||
};
|
||||
|
||||
private:
|
||||
|
Reference in New Issue
Block a user