Skip to content

Commit

Permalink
fix: change creature from checkCreatures from reference to copy
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas committed Nov 24, 2023
1 parent 4a25372 commit 551e66f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5797,7 +5797,7 @@ void Game::checkCreatures() {
auto &checkCreatureList = checkCreatureLists[index];
size_t it = 0, end = checkCreatureList.size();
while (it < end) {
const auto &creature = checkCreatureList[it];
auto creature = checkCreatureList[it];
if (creature && creature->creatureCheck) {
if (creature->getHealth() > 0) {
creature->onThink(EVENT_CREATURE_THINK_INTERVAL);
Expand Down

0 comments on commit 551e66f

Please sign in to comment.