Fixed nullref exceptions in CharacterHUD & RuinGenerator

This commit is contained in:
Joonas Rikkonen
2018-07-20 11:36:53 +03:00
parent f13b1b4d84
commit 8e03ac9284
2 changed files with 2 additions and 1 deletions
@@ -32,7 +32,7 @@ namespace Barotrauma
public static void TakeDamage(float amount)
{
healthBar.Flash();
healthBar?.Flash();
damageOverlayTimer = MathHelper.Clamp(amount * 0.1f, 0.2f, 1.0f);
}