Fix for potential crash in ItemInst::GetTotalItemCount()

This commit is contained in:
Uleat 2016-08-13 19:51:12 -04:00
parent fd1e425abc
commit 7f9af238f8

View File

@ -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; }