Skip to content

Commit

Permalink
Changed two 0.0's to false in the evaluate function.
Browse files Browse the repository at this point in the history
  • Loading branch information
JarkkoPar committed Oct 14, 2023
1 parent cdfe55b commit 2dcfe47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UtilityAIBehaviourGroup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ double UtilityAIBehaviourGroup::get_score() const {
// Handling functions.

bool UtilityAIBehaviourGroup::evaluate() {
if( !get_is_active() ) return 0.0;
if( Engine::get_singleton()->is_editor_hint() ) return 0.0;
if( !get_is_active() ) return false;
if( Engine::get_singleton()->is_editor_hint() ) return false;
int num_children = get_child_count();
if( num_children < 1 ) return false;

Expand Down

0 comments on commit 2dcfe47

Please sign in to comment.