Skip to content

Commit

Permalink
Update game.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
mehah committed Oct 25, 2024
1 parent 0736361 commit 39eea8e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/game/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6400,11 +6400,11 @@ void Game::checkCreatures() {
creature->onThink(EVENT_CREATURE_THINK_INTERVAL);
creature->onAttacking(EVENT_CREATURE_THINK_INTERVAL);
creature->executeConditions(EVENT_CREATURE_THINK_INTERVAL);
} else {
creature->inCheckCreaturesVector = false;
return false;
}

return !creature->inCheckCreaturesVector;
creature->inCheckCreaturesVector = false;
return true;
});

index = (index + 1) % EVENT_CREATURECOUNT;
Expand Down

0 comments on commit 39eea8e

Please sign in to comment.