浏览代码

BUGFIX: Fix unintialized cursor_shape on windows display server

Marios Staikopoulos 4 年之前
父节点
当前提交
2a2de2f684
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);