Skip to content

Commit

Permalink
small change
Browse files Browse the repository at this point in the history
  • Loading branch information
mehah committed Nov 2, 2023
1 parent 57b4593 commit c772a9e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/creatures/creature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,8 @@ void Creature::onThink(uint32_t interval) {
};

if (isUpdatingPath) {
g_dispatcher().asyncEvent([self = getCreature(), onThink = std::move(onThink)] {
self->isUpdatingPath = false;
self->goToFollowCreature_async(onThink);
});
isUpdatingPath = false;
goToFollowCreature_async(onThink);
return;
}

Expand Down

0 comments on commit c772a9e

Please sign in to comment.