forked from townforge/townforge
cc: fix reverting custom items with the same user data
This commit is contained in:
parent
4b210d6b61
commit
d3787f9257
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user