mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-21 17:45:39 +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()) {
|
||||
warning("got into attack process with invalid target");
|
||||
terminate();
|
||||
return;
|
||||
}
|
||||
|
||||
const Direction curdir = a->getDir();
|
||||
|
Loading…
x
Reference in New Issue
Block a user