Explorar o código

PopStyleVar() fix. OOPS

omar %!s(int64=10) %!d(string=hai) anos
pai
achega
2322318cac
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      imgui.cpp

+ 1 - 0
imgui.cpp

@@ -2633,6 +2633,7 @@ void ImGui::PopStyleVar(int count)
         else if (ImVec2* pvar_v = GetStyleVarVec2Addr(backup.Var))
             *pvar_v = backup.PreviousValue;
         g.StyleModifiers.pop_back();
+		count--;
     }
 }