Skip to content

Commit

Permalink
Fix Entities::HasFullHealth (#1137)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gireen committed Dec 2, 2019
1 parent 430414e commit 7f8e68a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sgame/Entities.cpp
Expand Up @@ -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) {
Expand Down

0 comments on commit 7f8e68a

Please sign in to comment.