KYRA: (HOF) - fix possible null ptr dereference in sequences_hof.cpp

This commit is contained in:
athrxx 2013-04-15 22:00:02 +02:00
parent 06962db454
commit 5ed0770401

View File

@ -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;