Browse Source

Merge pull request #45298 from marstaik/fix_cursor

BUGFIX: Fix uninitialized cursor_shape on windows display server
Rémi Verschelde 4 years ago
parent
commit
7dea83c623
1 changed files with 1 additions and 1 deletions
  1. 1 1
      platform/windows/display_server_windows.h

+ 1 - 1
platform/windows/display_server_windows.h

@@ -417,7 +417,7 @@ private:
 	WNDCLASSEXW wc;
 	WNDCLASSEXW wc;
 
 
 	HCURSOR cursors[CURSOR_MAX] = { nullptr };
 	HCURSOR cursors[CURSOR_MAX] = { nullptr };
-	CursorShape cursor_shape;
+	CursorShape cursor_shape = CursorShape::CURSOR_ARROW;
 	Map<CursorShape, Vector<Variant>> cursors_cache;
 	Map<CursorShape, Vector<Variant>> cursors_cache;
 
 
 	void _drag_event(WindowID p_window, float p_x, float p_y, int idx);
 	void _drag_event(WindowID p_window, float p_x, float p_y, int idx);