From 1ebf1c6b4e35ccf3663f37ecb1b435cc539bb378 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Wed, 31 Mar 2021 21:10:10 +0200 Subject: [PATCH] :bug: Do not render health bar if graphics are missing --- SourceX/qol.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SourceX/qol.cpp b/SourceX/qol.cpp index 98444200c..6ca351def 100644 --- a/SourceX/qol.cpp +++ b/SourceX/qol.cpp @@ -71,6 +71,8 @@ void DrawMonsterHealthBar(CelOutputBuffer out) if (!sgOptions.Gameplay.bEnemyHealthBar) return; assert(qolArt != nullptr); + if (qolArt->healthBox.surface == nullptr) + return; if (currlevel == 0) return; if (pcursmonst == -1)