From 1d411bfebe7507338d25018c13d834b918dc65da Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 14 Mar 2023 19:51:14 +0800 Subject: [PATCH] 1 --- server/gameserver/buff/callfunc.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/gameserver/buff/callfunc.cc b/server/gameserver/buff/callfunc.cc index a07da7eb..a0416d99 100644 --- a/server/gameserver/buff/callfunc.cc +++ b/server/gameserver/buff/callfunc.cc @@ -337,7 +337,9 @@ void CallFuncBuff::ProcLightCircle() if (context->in_human_infos.find(hum->GetUniId()) != context->in_human_infos.end()) { abort(); } - context->in_human_infos[hum->GetUniId()] = InnerObject(); + InnerObject o; + o.c = hum->GetWeakPtrRef(); + context->in_human_infos[hum->GetUniId()] = o; context->in_human_infos[hum->GetUniId()].OnEnter(); }; auto on_stay = @@ -358,7 +360,8 @@ void CallFuncBuff::ProcLightCircle() [this, context, on_enter, on_stay, on_leave] () { - const mt::Skill* curr_skill_meta = context->active_skill_meta ? context->active_skill_meta : skill_meta; + const mt::Skill* curr_skill_meta = context->active_skill_meta ? + context->active_skill_meta : skill_meta; if (!owner->dead) { float range = curr_skill_meta->_number_meta->_float_range2; int size = 0; @@ -398,9 +401,6 @@ void CallFuncBuff::ProcLightCircle() context->in_human_infos.end()) { on_enter(hit_humans[i]); on_stay(hit_humans[i]); - #if 0 - context->in_human_infos.insert(hit_humans[i]-); - #endif } else { on_stay(hit_humans[i]); }