mirror of
https://github.com/EQEmu/Server.git
synced 2026-10-08 01:13:35 +00:00
Fix for potential crash in ItemInst::GetTotalItemCount()
This commit is contained in:
1 parent
fd1e425abc
commit
7f9af238f8
1 file changed
+3
@@ -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; }
|
||||
|
||||
Reference in new issue
Block a user