mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-26 17:52:34 +00:00
Fix for potential crash in ItemInst::GetTotalItemCount()
This commit is contained in:
parent
fd1e425abc
commit
7f9af238f8
@ -1863,6 +1863,9 @@ uint8 ItemInst::FirstOpenSlot() const
|
|||||||
|
|
||||||
uint8 ItemInst::GetTotalItemCount() const
|
uint8 ItemInst::GetTotalItemCount() const
|
||||||
{
|
{
|
||||||
|
if (!m_item)
|
||||||
|
return 0;
|
||||||
|
|
||||||
uint8 item_count = 1;
|
uint8 item_count = 1;
|
||||||
|
|
||||||
if (m_item && !m_item->IsClassBag()) { return item_count; }
|
if (m_item && !m_item->IsClassBag()) { return item_count; }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user