This commit is contained in:
aozhiwei 2023-04-05 16:36:53 +08:00
parent a3dc2d98d4
commit a7e03d0207

View File

@ -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;
}