Mark SetHeldItem with item object as const ptr.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-02-17 17:24:55 +01:00
parent ce31309b2a
commit 5e29f50ea1
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ namespace CreatureLib::Battling {
} }
inline const Library::Item* GetHeldItem() const { return _heldItem; } inline const Library::Item* GetHeldItem() const { return _heldItem; }
void SetHeldItem(const std::string& itemName); 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; } inline uint32_t GetCurrentHealth() const { return _currentHealth; }