mirror of
https://github.com/minetest/irrlicht.git
synced 2024-11-09 17:23:50 +01:00
SDL: set default for ActiveIcon
getActiveIcon() may be called before ActiveIcon is initialized, leading to undefined behavior.
This commit is contained in:
parent
6779ac83f9
commit
330150854b
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user