From 5e29f50ea138bdc82f873e80bea49cca0441ee5e Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Mon, 17 Feb 2020 17:24:55 +0100 Subject: [PATCH] Mark SetHeldItem with item object as const ptr. --- src/Battling/Models/Creature.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Battling/Models/Creature.hpp b/src/Battling/Models/Creature.hpp index 63c573a..8b42f1d 100644 --- a/src/Battling/Models/Creature.hpp +++ b/src/Battling/Models/Creature.hpp @@ -87,7 +87,7 @@ namespace CreatureLib::Battling { } inline const Library::Item* GetHeldItem() const { return _heldItem; } void SetHeldItem(const std::string& itemName); - inline void SetHeldItem(Library::Item* item) { _heldItem = item; }; + inline void SetHeldItem(const Library::Item* item) { _heldItem = item; }; inline uint32_t GetCurrentHealth() const { return _currentHealth; }