diff --git a/src/creatures/creature.hpp b/src/creatures/creature.hpp index 6571604bba4..3349ddb83a9 100644 --- a/src/creatures/creature.hpp +++ b/src/creatures/creature.hpp @@ -222,7 +222,7 @@ class Creature : virtual public Thing { varBuffs[buff] += modifier; } - virtual const std::vector getIcons() const { + virtual std::vector getIcons() const { std::vector icons; icons.reserve(creatureIcons.size()); for (const auto &[_, icon] : creatureIcons) { diff --git a/src/creatures/monsters/monster.hpp b/src/creatures/monsters/monster.hpp index a32d2a737e4..a479b494a9a 100644 --- a/src/creatures/monsters/monster.hpp +++ b/src/creatures/monsters/monster.hpp @@ -160,7 +160,7 @@ class Monster final : public Creature { return challengeFocusDuration > 0; } - const std::vector getIcons() const override { + std::vector getIcons() const override { const auto creatureIcons = Creature::getIcons(); if (!creatureIcons.empty()) { return creatureIcons;