mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-01 14:21:41 +00:00
SAGA2: Fix null target access in task.cpp
This commit is contained in:
parent
bcf4213e05
commit
016d69e418
@ -3034,7 +3034,7 @@ void HuntToKillTask::evaluateTarget(void) {
|
||||
Actor *a = stack->getActor();
|
||||
|
||||
if (flags & evalWeapon
|
||||
&& a->isInterruptable()) {
|
||||
&& a->isInterruptable() && currentTarget != NULL) {
|
||||
evaluateWeapon();
|
||||
flags &= ~evalWeapon;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user