Skip to content

Commit

Permalink
remove const reference
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas authored Oct 18, 2024
1 parent 3cd4225 commit 41f98a6
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 @@ -1394,7 +1394,7 @@ bool Monster::getRandomStep(const Position &creaturePos, Direction &moveDirectio
}

bool Monster::getDanceStep(const Position &creaturePos, Direction &moveDirection, bool keepAttack /*= true*/, bool keepDistance /*= true*/) {
const auto &attackedCreature = getAttackedCreature();
auto attackedCreature = getAttackedCreature();
if (!attackedCreature) {
return false;
}
Expand Down

0 comments on commit 41f98a6

Please sign in to comment.