1
This commit is contained in:
parent
f181fa1616
commit
30813b52b4
@ -189,7 +189,7 @@ int Creature::AddBuff(Creature* caster,
|
|||||||
}
|
}
|
||||||
++buff_uniid_;
|
++buff_uniid_;
|
||||||
int new_buff_uniid = buff_uniid_;
|
int new_buff_uniid = buff_uniid_;
|
||||||
auto buff = std::make_shared<Buff>();
|
auto buff = std::shared_ptr<Buff>(BuffFactory::MakeBuff(buff_meta));
|
||||||
buff_list_.push_back(buff);
|
buff_list_.push_back(buff);
|
||||||
buff->buff_uniid = new_buff_uniid;
|
buff->buff_uniid = new_buff_uniid;
|
||||||
buff->SetCaster(caster);
|
buff->SetCaster(caster);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user