mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-22 01:57:16 +00:00
ULTIMA8: Terminate attack process if target is null
Thanks coverity!
This commit is contained in:
parent
283f96724e
commit
baf9124395
@ -182,6 +182,7 @@ void AttackProcess::run() {
|
|||||||
if (!target || target->isDead()) {
|
if (!target || target->isDead()) {
|
||||||
warning("got into attack process with invalid target");
|
warning("got into attack process with invalid target");
|
||||||
terminate();
|
terminate();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const Direction curdir = a->getDir();
|
const Direction curdir = a->getDir();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user