1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-05 02:07:46 +00:00

Fix item being added more than once when there is already a stack of the same item.

This commit is contained in:
collett 2020-01-03 01:07:42 +09:00
parent 885746c860
commit e8ebabe025

View file

@ -593,6 +593,8 @@ Sapphire::ItemPtr Sapphire::Entity::Player::addItem( uint32_t catalogId, uint32_
quantity = newStackSize - maxStack;
newStackSize = maxStack;
}
else
quantity = 0;
item->setStackSize( newStackSize );
writeItem( item );