1
This commit is contained in:
parent
8d6b1f576c
commit
cbb009401b
@ -244,6 +244,16 @@ void Hero::OnRemoveFromTargetPartObject(Entity* target)
|
||||
|
||||
void Hero::InitAI()
|
||||
{
|
||||
MetaData::AI* ai_meta = MetaMgr::Instance()->GetHeroAI(meta->i->ai());
|
||||
if (!ai_meta) {
|
||||
#ifdef DEBUG
|
||||
abort();
|
||||
#endif
|
||||
ai_meta = MetaMgr::Instance()->GetHeroAI(1001);
|
||||
}
|
||||
if (!ai_meta) {
|
||||
abort();
|
||||
}
|
||||
ai = new HeroAI;
|
||||
ai->owner = this;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user