Skip to content

Commit

Permalink
Revert "perf: onRemoveCreature->onCreatureLeave async (opentibiabr#3152
Browse files Browse the repository at this point in the history
…)"

This reverts commit 74b8ed0.
  • Loading branch information
feliphechaves committed Jan 13, 2025
1 parent 21617a4 commit 061aabf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/creatures/monsters/monster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,7 @@ void Monster::onRemoveCreature(const std::shared_ptr<Creature> &creature, bool i

setIdle(true);
} else {
addAsyncTask([this, creature] {
onCreatureLeave(creature);
});
onCreatureLeave(creature);
}
}

Expand Down

0 comments on commit 061aabf

Please sign in to comment.