From bb92e76425e63b75fcf7aaafffab33cfe1e23e4b Mon Sep 17 00:00:00 2001 From: Yimura Date: Tue, 22 Mar 2022 23:39:33 +0100 Subject: [PATCH] fix(GUI): Call ImGui::End regardless of return of ImGui::Begin Fixes #127 --- BigBaseV2/src/views/esp/view_esp.cpp | 3 +-- BigBaseV2/src/views/view_active_view.cpp | 2 +- BigBaseV2/src/views/view_navigation.cpp | 2 +- BigBaseV2/src/views/view_notifications.cpp | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/BigBaseV2/src/views/esp/view_esp.cpp b/BigBaseV2/src/views/esp/view_esp.cpp index 3e60b722..b8aa672e 100644 --- a/BigBaseV2/src/views/esp/view_esp.cpp +++ b/BigBaseV2/src/views/esp/view_esp.cpp @@ -93,8 +93,7 @@ namespace big } } - - ImGui::End(); } + ImGui::End(); } } \ No newline at end of file diff --git a/BigBaseV2/src/views/view_active_view.cpp b/BigBaseV2/src/views/view_active_view.cpp index ff792561..463c1682 100644 --- a/BigBaseV2/src/views/view_active_view.cpp +++ b/BigBaseV2/src/views/view_active_view.cpp @@ -41,8 +41,8 @@ namespace big ImGui::PopStyleColor(); } ImGui::PopStyleVar(); - ImGui::End(); } + ImGui::End(); ImGui::PopStyleColor(); } } \ No newline at end of file diff --git a/BigBaseV2/src/views/view_navigation.cpp b/BigBaseV2/src/views/view_navigation.cpp index 06ff6559..099a2310 100644 --- a/BigBaseV2/src/views/view_navigation.cpp +++ b/BigBaseV2/src/views/view_navigation.cpp @@ -67,7 +67,7 @@ namespace big } ImGui::PopStyleColor(); - ImGui::End(); } + ImGui::End(); } } \ No newline at end of file diff --git a/BigBaseV2/src/views/view_notifications.cpp b/BigBaseV2/src/views/view_notifications.cpp index 0577a0cf..ce1703cc 100644 --- a/BigBaseV2/src/views/view_notifications.cpp +++ b/BigBaseV2/src/views/view_notifications.cpp @@ -27,7 +27,7 @@ namespace big ImGui::PopStyleColor(2); ImGui::PopStyleVar(); } - ImGui::End(); } + ImGui::End(); } } \ No newline at end of file