aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui.cpp b/src/ui.cpp
index 08f503f..b759012 100644
--- a/src/ui.cpp
+++ b/src/ui.cpp
@@ -556,7 +556,7 @@ namespace ui {
hub.y-=fontSize*1.15;
glRectf(hub.x,
hub.y,
- hub.x+(player->health/player->maxHealth)*130,
+ hub.x+(player->health/player->maxHealth?player->maxHealth:1)*130,
hub.y+12);
}