1
This commit is contained in:
parent
a3dc2d98d4
commit
a7e03d0207
@ -290,7 +290,7 @@ behaviac::EBTStatus HeroAgent::DoPursuit()
|
||||
if (status_ == behaviac::BT_RUNNING) {
|
||||
return DoRunningCb();
|
||||
}
|
||||
Human* enemy = GetOwner()->room->FindEnemy(GetOwner()->AsHuman(), 500);
|
||||
Creature* enemy = GetOwner()->room->FindEnemy(GetOwner(), 500);
|
||||
if (!enemy) {
|
||||
return behaviac::BT_FAILURE;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user