Browse Source

BUGFIX: Fix unintialized cursor_shape on windows display server

Marios Staikopoulos 4 years ago
parent
commit
2a2de2f684
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;
 
 	HCURSOR cursors[CURSOR_MAX] = { nullptr };
-	CursorShape cursor_shape;
+	CursorShape cursor_shape = CursorShape::CURSOR_ARROW;
 	Map<CursorShape, Vector<Variant>> cursors_cache;
 
 	void _drag_event(WindowID p_window, float p_x, float p_y, int idx);