mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-27 05:32:45 +00:00
ULTIMA8: Avoid crash if avatar gone
This can sometimes happen in Remorse after avatar death if the avatar got blown up
This commit is contained in:
parent
5cb1c555aa
commit
42f6d22fdf
@ -281,7 +281,9 @@ uint16 CameraProcess::findRoof(int32 factor) {
|
||||
GetLerped(x, y, z, factor);
|
||||
_earthquake = earthquake_old;
|
||||
Item *avatar = getItem(1);
|
||||
assert(avatar);
|
||||
if (!avatar) // avatar gone?
|
||||
return 0;
|
||||
|
||||
int32 dx, dy, dz;
|
||||
avatar->getFootpadWorld(dx, dy, dz);
|
||||
uint16 roofid;
|
||||
|
Loading…
x
Reference in New Issue
Block a user