diff --git a/src/unit_world_state.cpp b/src/unit_world_state.cpp index 9cf7ab6..2f7fb5a 100644 --- a/src/unit_world_state.cpp +++ b/src/unit_world_state.cpp @@ -116,7 +116,7 @@ bool UnitWorldState::get_is_in_range() const { } bool UnitWorldState::get_is_health_safe() const { - return float(this->health->get_injury_current()) > (float(this->health->get_injury_max()) / 2.f); + return this->health->get_injury_current() > this->health->get_injury_max() / 2; } gd::Vector3 UnitWorldState::get_parent_global_position() const {