diff options
| author | athrxx | 2013-04-15 22:00:02 +0200 | 
|---|---|---|
| committer | athrxx | 2013-04-18 16:10:43 +0200 | 
| commit | 5ed0770401ed12d8be5f8e11f10f978789f1ae3d (patch) | |
| tree | ca874e3f6e5c6fb3c631ce0e3da80d3eeb1c65c6 | |
| parent | 06962db454c0a73087a06511b70accc69053bba8 (diff) | |
| download | scummvm-rg350-5ed0770401ed12d8be5f8e11f10f978789f1ae3d.tar.gz scummvm-rg350-5ed0770401ed12d8be5f8e11f10f978789f1ae3d.tar.bz2 scummvm-rg350-5ed0770401ed12d8be5f8e11f10f978789f1ae3d.zip  | |
KYRA: (HOF) - fix possible null ptr dereference in sequences_hof.cpp
| -rw-r--r-- | engines/kyra/sequences_hof.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/kyra/sequences_hof.cpp b/engines/kyra/sequences_hof.cpp index a4294cbc37..306f504b9e 100644 --- a/engines/kyra/sequences_hof.cpp +++ b/engines/kyra/sequences_hof.cpp @@ -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;  | 
