This commit is contained in:
aozhiwei 2023-03-15 15:52:50 +08:00
parent 29801be6e4
commit e5200da0d7

View File

@ -95,7 +95,13 @@ void HideBuff::Check()
}
if (timeout) {
for (auto& pair : alert_buff_hash_) {
auto& tuple = pair.second;
if (std::get<0>(tuple).Get()) {
std::get<0>(tuple).Get()->RemoveBuffByUniId(std::get<3>(tuple));
}
}
alert_buff_hash_.clear();
} else if (!leave_targets.empty()) {
for (int obj_uniid : leave_targets) {
auto itr = alert_buff_hash_.find(obj_uniid);