Browse Source

🐛 Do not render health bar if graphics are missing

pull/1315/head
Anders Jenbo 5 years ago
parent
commit
1ebf1c6b4e
  1. 2
      SourceX/qol.cpp

2
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)

Loading…
Cancel
Save