Browse Source

Fixed uninitialized variable (leading to asserts in the docking branch). (#2376, #2371)

omar 6 years ago
parent
commit
6cbf4b8121
1 changed files with 2 additions and 0 deletions
  1. 2 0
      imgui_internal.h

+ 2 - 0
imgui_internal.h

@@ -1037,6 +1037,8 @@ struct ImGuiContext
         DragDropAcceptFrameCount = -1;
         memset(DragDropPayloadBufLocal, 0, sizeof(DragDropPayloadBufLocal));
 
+        CurrentTabBar = NULL;
+
         ScalarAsInputTextId = 0;
         ColorEditOptions = ImGuiColorEditFlags__OptionsDefault;
         DragCurrentAccumDirty = false;