cc: fix reverting custom items with the same user data

This commit is contained in:
Crypto City 2023-03-15 18:44:31 +00:00
parent 4b210d6b61
commit d3787f9257

View File

@ -977,10 +977,7 @@ bool cc_command_handler_game_update::revert(cryptonote::BlockchainDB &db, const
uint32_t id = ITEM_NONE;
db.for_all_cc_custom_items([&id, &e](const cc::cc_custom_item_t &cid) {
if (cid.user_data == e.user_data)
{
id = cid.id;
return false;
}
return true;
});
if (id == ITEM_NONE)