Skip to content
Permalink
Browse files

Fix Entities::HasFullHealth (#1137)

  • Loading branch information
Gireen committed Dec 2, 2019
1 parent 430414e commit 7f8e68a3489ed661fefb0f1eb60163bc5d335f2b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/sgame/Entities.cpp
@@ -96,7 +96,7 @@ float Entities::HealthOf(gentity_t* ent) {
bool Entities::HasFullHealth(Entity& entity) {
HealthComponent *healthComponent = entity.Get<HealthComponent>();
ASSERT_NQ(healthComponent, nullptr);
return healthComponent->Health();
return healthComponent->FullHealth();
}

bool Entities::HasFullHealth(gentity_t* ent) {

0 comments on commit 7f8e68a

Please sign in to comment.
You can’t perform that action at this time.