From 2a8f8781fd3af6c612fee0969b83eb5baa4a1a21 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 26 Oct 2023 19:15:49 +0800 Subject: [PATCH] 1 --- server/gameserver/creature.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server/gameserver/creature.cc b/server/gameserver/creature.cc index 8fe4b65b..3c25a23b 100644 --- a/server/gameserver/creature.cc +++ b/server/gameserver/creature.cc @@ -3639,4 +3639,11 @@ void Creature::ActivateTargetValidPos() void Creature::RemoveHideEffect(int reason) { list_head* head = &buff_effect_[kBET_Hide]; + list_head* pos = nullptr; + list_head* next = nullptr; + list_for_each_safe(pos, next, head) { + Buff* buff = list_entry(pos, + Buff, + effect_entry); + } }