1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-27 06:47:45 +00:00

add id check in addItem as well

This commit is contained in:
collett 2020-06-17 02:28:39 +09:00
parent b43893d560
commit 031d354bbd

View file

@ -694,6 +694,8 @@ Sapphire::ItemPtr Sapphire::Entity::Player::addItem( ItemPtr itemToAdd, bool sil
Sapphire::ItemPtr Sapphire::Entity::Player::addItem( uint32_t catalogId, uint32_t quantity, bool isHq, bool silent, bool canMerge, bool sendLootMessage )
{
if( catalogId == 0 )
return false;
auto item = createItem( catalogId, quantity );
item->setHq( isHq );
return addItem( item, silent, canMerge, sendLootMessage );