diff --git a/src/Library/Items/Item.hpp b/src/Library/Items/Item.hpp index 95c88da..d141126 100644 --- a/src/Library/Items/Item.hpp +++ b/src/Library/Items/Item.hpp @@ -19,7 +19,7 @@ namespace CreatureLib::Library { Item(std::string name, ItemCategory category, BattleItemCategory battleCategory, int32_t price, std::unordered_set flags); - inline const std::string GetName() const { return _name; } + inline const std::string& GetName() const { return _name; } inline ItemCategory GetCategory() const { return _category; } inline BattleItemCategory GetBattleCategory() const { return _battleCategory; } inline const int32_t GetPrice() const { return _price; }