Fixed a potential crash when disabling the help prompts

This commit is contained in:
Leon Styhre 2025-03-31 19:56:18 +02:00
parent afd6b939c7
commit 7c9534204c

View file

@ -392,7 +392,7 @@ void HelpComponent::applyTheme(const std::shared_ptr<ThemeData>& theme,
void HelpComponent::render(const glm::mat4& parentTrans)
{
if (!mVisible)
if (!mVisible || mGrid == nullptr)
return;
if (mBackgroundColor != 0x00000000) {