This commit is contained in:
aozhiwei 2023-03-30 13:38:20 +08:00
parent 67af9c6066
commit 2e6702ebd3
2 changed files with 13 additions and 1 deletions

View File

@ -1962,6 +1962,17 @@ Hero* Creature::InternalSummonHero(Buff* buff, const mt::Hero* hero_meta, glm::v
dir,
team_id
);
if (hero) {
auto itr = slave_heros_.find(hero_meta->id());
if (itr != slave_heros_.end()) {
list_add_tail(&hero->entry, &itr->second);
} else {
slave_heros_[hero_meta->id()] = list_head();
itr = slave_heros_.find(hero_meta->id());
INIT_LIST_HEAD(&itr->second);
list_add_tail(&hero->entry, &itr->second);
}
}
return hero;
}

View File

@ -115,7 +115,8 @@ void FrameEvent::AddBullet(int bullet_uniid,
(
[bullet_idx, &sender] (Human* hum, bool& stop)
{
#ifdef DEBUG
#ifdef DEBUG1
// 999
if (!hum->InPartObjects(sender.Get())) {
A8_ABORT();
}