This commit is contained in:
aozhiwei 2023-04-04 16:20:53 +08:00
parent 8a508e47b2
commit 1ab8647bbd

View File

@ -232,9 +232,13 @@ void CondAddBuff::ProcLimitTimeKillTarget()
auto holder = std::make_shared<a8::Holder>
(
[context] (const a8::Args& args)
[this, context] (const a8::Args& args)
{
if (!owner->room->IsDestorying()) {
for (auto& pair : context->watch_targets) {
owner->GetTrigger()->RemoveEventHandler(std::get<1>(pair.second));
}
}
});
auto cb =