Core/Items: Use proper method for returning item max stack size
--HG-- branch : trunk
This commit is contained in:
@@ -889,8 +889,8 @@ bool Player::Create(uint32 guidlow, const std::string& name, uint8 race, uint8 c
|
|||||||
count = 2;
|
count = 2;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (uint32(iProto->Stackable) < count)
|
if (iProto->GetMaxStackSize() < count)
|
||||||
count = iProto->Stackable;
|
count = iProto->GetMaxStackSize();
|
||||||
}
|
}
|
||||||
StoreNewItemInBestSlots(item_id, count);
|
StoreNewItemInBestSlots(item_id, count);
|
||||||
}
|
}
|
||||||
@@ -15526,7 +15526,7 @@ bool Player::HasQuestForItem(uint32 itemid) const
|
|||||||
{
|
{
|
||||||
if (GetItemCount(itemid, true) < qinfo->ReqSourceCount[j])
|
if (GetItemCount(itemid, true) < qinfo->ReqSourceCount[j])
|
||||||
return true;
|
return true;
|
||||||
} else if (int32(GetItemCount(itemid, true)) < pProto->Stackable)
|
} else if (GetItemCount(itemid, true) < pProto->GetMaxStackSize())
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user