Mark SetHeldItem with item object as const ptr.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
ce31309b2a
commit
5e29f50ea1
|
@ -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; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue