mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-04 17:57:47 +00:00
delete sold item from db
This commit is contained in:
parent
6cb0a7eed2
commit
0273931e4c
1 changed files with 7 additions and 0 deletions
|
@ -2259,6 +2259,13 @@ void Sapphire::Entity::Player::addBuyBackItemForShop( uint32_t shopId, const Sap
|
|||
|
||||
void Sapphire::Entity::Player::clearBuyBackMap()
|
||||
{
|
||||
for( auto& list : m_shopBuyBackMap )
|
||||
{
|
||||
for( auto& entry : list.second )
|
||||
{
|
||||
deleteItemDb( entry.item );
|
||||
}
|
||||
}
|
||||
m_shopBuyBackMap.clear();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue