Merge branch 'master' into team

This commit is contained in:
aozhiwei 2021-09-28 22:54:15 +08:00
commit 037e85247c
2 changed files with 3 additions and 1 deletions

View File

@ -2226,8 +2226,9 @@ void Human::DecItem(int item_id, int item_num)
room->frame_event.AddItemChg(GetWeakPtrRef(), item_id, std::max(0, itr->second));
if (itr->second <= 0) {
if (battling_items_.find(item_id) == battling_items_.end()) {
items_.erase(itr);
//items_.erase(itr); //为啥?????
}
items_.erase(itr);
}
}
}

View File

@ -365,6 +365,7 @@ void Player::UpdateUseItemId()
ProcUseItem(use_item_id);
use_item_id = 0;
has_use_item_id = false;
need_sync_active_player = true;
}
void Player::UpdateSpectate()