mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-22 12:53:52 +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
|
||||
{
|
||||
if (!m_item)
|
||||
return 0;
|
||||
|
||||
uint8 item_count = 1;
|
||||
|
||||
if (m_item && !m_item->IsClassBag()) { return item_count; }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user