mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-28 20:27:46 +00:00
Fix item dupe.
This commit is contained in:
parent
71bd6ef133
commit
81d5929e08
1 changed files with 4 additions and 0 deletions
|
@ -593,6 +593,10 @@ Sapphire::ItemPtr Sapphire::Entity::Player::addItem( uint32_t catalogId, uint32_
|
|||
quantity = newStackSize - maxStack;
|
||||
newStackSize = maxStack;
|
||||
}
|
||||
else
|
||||
{
|
||||
quantity = 0;
|
||||
}
|
||||
|
||||
item->setStackSize( newStackSize );
|
||||
writeItem( item );
|
||||
|
|
Loading…
Add table
Reference in a new issue