Skip to content

Commit

Permalink
Fix logic in actor system
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <[email protected]>
  • Loading branch information
iche033 committed Sep 3, 2024
1 parent 6e7f2a0 commit 782643c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/systems/follow_actor/FollowActor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ void FollowActor::PreUpdate(const UpdateInfo &_info,

// Is there a follow target?
if (this->dataPtr->targetEntity == kNullEntity ||
_ecm.HasEntity(this->dataPtr->targetEntity) ||
_ecm.HasEntity(this->dataPtr->actorEntity))
!_ecm.HasEntity(this->dataPtr->targetEntity) ||
!_ecm.HasEntity(this->dataPtr->actorEntity))
return;

// Current world pose
Expand Down

0 comments on commit 782643c

Please sign in to comment.