SAGA2: Fix null target access in task.cpp

This commit is contained in:
a/ 2021-07-19 20:33:19 +09:00
parent bcf4213e05
commit 016d69e418

View File

@ -3034,7 +3034,7 @@ void HuntToKillTask::evaluateTarget(void) {
Actor *a = stack->getActor();
if (flags & evalWeapon
&& a->isInterruptable()) {
&& a->isInterruptable() && currentTarget != NULL) {
evaluateWeapon();
flags &= ~evalWeapon;
}