From 83ae87594fd3570e44b49927d0373a87293eaaaf Mon Sep 17 00:00:00 2001 From: Tleety Date: Sun, 13 Mar 2016 22:00:48 +0100 Subject: [PATCH] Fixed maxhealth probably --- src/Game/Systems/HealthHUDSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Game/Systems/HealthHUDSystem.cpp b/src/Game/Systems/HealthHUDSystem.cpp index efa70167..bfc63700 100644 --- a/src/Game/Systems/HealthHUDSystem.cpp +++ b/src/Game/Systems/HealthHUDSystem.cpp @@ -23,7 +23,7 @@ void HealthHUDSystem::Update(double dt) if (entity.HasComponent("Text")) { double health = (const double&)entityIDParent["Health"]["Health"]; - double maxHealth = (const double&)entityIDParent["Health"]["Health"]; + double maxHealth = (const double&)entityIDParent["Health"]["MaxHealth"]; std::string s = ""; s = s + std::to_string((int)health); s = s + "/";