Skip to content

Commit

Permalink
updateIdleStatus only walk
Browse files Browse the repository at this point in the history
  • Loading branch information
mehah committed Nov 7, 2024
1 parent 13cd49b commit bf52e20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/creatures/monsters/monster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@ void Monster::setIdle(bool idle) {
}

void Monster::updateIdleStatus() {
if (!g_dispatcher().context().isAsync()) {
if (g_dispatcher().context().getGroup() == TaskGroup::Walk) {
setAsyncTaskFlag(UpdateIdleStatus, true);
return;
}
Expand Down

0 comments on commit bf52e20

Please sign in to comment.