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

delete sold item from db

This commit is contained in:
collett 2020-05-12 02:57:13 +09:00
parent 6cb0a7eed2
commit 0273931e4c

View file

@ -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();
}