summaryrefslogtreecommitdiff
path: root/graphics/src/render.rs
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/src/render.rs')
-rw-r--r--graphics/src/render.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/src/render.rs b/graphics/src/render.rs
index 02bc61c..208dafb 100644
--- a/graphics/src/render.rs
+++ b/graphics/src/render.rs
@@ -665,7 +665,7 @@ impl Renderer {
where
R: RaylibDraw,
{
- let health = player.entity.health.unwrap_or(0);
+ let health = player.entity.health;
let damage = 0; // TODO: calc damage
const TEXT_WIDTH: u16 = FONT_SIZE * 3 + UI_PADDING;