This commit is contained in:
aozhiwei 2021-06-15 23:07:52 +08:00
parent 0f60fa5631
commit 846337646f

View File

@ -201,7 +201,7 @@ void Creature::AddBuff(Creature* caster,
list_add_tail(&buff->effect_entry, &buff_effect_[buff->meta->i->buff_effect()]); list_add_tail(&buff->effect_entry, &buff_effect_[buff->meta->i->buff_effect()]);
if (buff->meta->i->depend_effect() != 0 && if (buff->meta->i->depend_effect() != 0 &&
IsValidBuffEffect(buff->meta->i->depend_effect())) { IsValidBuffEffect(buff->meta->i->depend_effect())) {
list_add_tail(&depend_effect_[buff->meta->i->depend_effect()], &buff->depend_entry); list_add_tail(&buff->depend_entry, &depend_effect_[buff->meta->i->depend_effect()]);
} else { } else {
INIT_LIST_HEAD(&buff->depend_entry); INIT_LIST_HEAD(&buff->depend_entry);
} }