瀏覽代碼

Fixed implicit conversion of NULL constant to bool (fix #216)

ocornut 10 年之前
父節點
當前提交
4913668ea4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      imgui.h

+ 1 - 1
imgui.h

@@ -359,7 +359,7 @@ namespace ImGui
 
     // Widgets: Menus
 	// FIXME-WIP: v1.39 in development
-    IMGUI_API bool          MenuItem(const char* label, const char* shortcut = NULL, bool selected = NULL); // bool enabled = true
+    IMGUI_API bool          MenuItem(const char* label, const char* shortcut = NULL, bool selected = false); // bool enabled = true
     IMGUI_API bool          MenuItem(const char* label, const char* shortcut, bool* p_selected); // bool enabled = true
 
     // Widgets: Value() Helpers. Output single value in "name: value" format (tip: freely declare your own within the ImGui namespace!)