From 7c9534204c5f55b4975ece8db9957ba9c6a30b3e Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Mon, 31 Mar 2025 19:56:18 +0200 Subject: [PATCH] Fixed a potential crash when disabling the help prompts --- es-core/src/components/HelpComponent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/es-core/src/components/HelpComponent.cpp b/es-core/src/components/HelpComponent.cpp index f3128da72..86a7d4d85 100644 --- a/es-core/src/components/HelpComponent.cpp +++ b/es-core/src/components/HelpComponent.cpp @@ -392,7 +392,7 @@ void HelpComponent::applyTheme(const std::shared_ptr& theme, void HelpComponent::render(const glm::mat4& parentTrans) { - if (!mVisible) + if (!mVisible || mGrid == nullptr) return; if (mBackgroundColor != 0x00000000) {