Skip to content

Commit

Permalink
Merge branch 'feat_monster_weight' of https://github.com/opentibiabr/…
Browse files Browse the repository at this point in the history
…remeres-map-editor into feat_monster_weight
  • Loading branch information
phacUFPE committed Sep 28, 2024
2 parents b5d531a + 26c5bdd commit 73633de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/monster.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class Monster {
selected = true;
}

[[nodiscard]] const std::string& getTypeName() const noexcept {
[[nodiscard]] const std::string &getTypeName() const noexcept {
return type_name;
}

Expand Down
5 changes: 3 additions & 2 deletions source/tile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,9 @@ std::vector<Monster*> Tile::getSelectedMonsters() {

bool Tile::isMonsterRepeated(const std::string &searchMonster) const {
return std::ranges::find_if(monsters, [&](const auto monster) {
return monster->getTypeName() == searchMonster;
}) != monsters.end();
return monster->getTypeName() == searchMonster;
})
!= monsters.end();
}

Item* Tile::getTopSelectedItem() {
Expand Down

0 comments on commit 73633de

Please sign in to comment.