1
This commit is contained in:
parent
4b69a71f31
commit
2785a947fc
@ -232,11 +232,11 @@ void CondAddBuff::ProcLimitTimeKillTarget()
|
||||
|
||||
auto holder = std::make_shared<a8::Holder>
|
||||
(
|
||||
[this, context] (const a8::Args& args)
|
||||
[owner = owner->GetWeakPtrRef(), context] (const a8::Args& args) mutable
|
||||
{
|
||||
if (!owner->room->IsDestorying()) {
|
||||
if (owner.Get() && !owner.Get()->room->IsDestorying()) {
|
||||
for (auto& pair : context->watch_targets) {
|
||||
owner->GetTrigger()->RemoveEventHandler(std::get<1>(pair.second));
|
||||
owner.Get()->GetTrigger()->RemoveEventHandler(std::get<1>(pair.second));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user