mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-23 19:16:21 +00:00
KYRA: (HOF) - fix possible null ptr dereference in sequences_hof.cpp
This commit is contained in:
parent
06962db454
commit
5ed0770401
@ -942,8 +942,8 @@ void SeqPlayer_HOF::playAnimation(WSAMovie_v2 *wsaObj, int startFrame, int lastF
|
||||
bool finished = false;
|
||||
uint32 startTime = _system->getMillis();
|
||||
|
||||
int origW = wsaObj->width();
|
||||
int origH = wsaObj->width();
|
||||
int origW = wsaObj ? wsaObj->width() : 0;
|
||||
int origH = wsaObj ? wsaObj->height() : 0;
|
||||
int drwX = x;
|
||||
int drwY = y;
|
||||
int drwW = origW;
|
||||
|
Loading…
x
Reference in New Issue
Block a user