aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorathrxx2013-04-15 22:00:02 +0200
committerathrxx2013-04-18 16:10:43 +0200
commit5ed0770401ed12d8be5f8e11f10f978789f1ae3d (patch)
treeca874e3f6e5c6fb3c631ce0e3da80d3eeb1c65c6 /engines
parent06962db454c0a73087a06511b70accc69053bba8 (diff)
downloadscummvm-rg350-5ed0770401ed12d8be5f8e11f10f978789f1ae3d.tar.gz
scummvm-rg350-5ed0770401ed12d8be5f8e11f10f978789f1ae3d.tar.bz2
scummvm-rg350-5ed0770401ed12d8be5f8e11f10f978789f1ae3d.zip
KYRA: (HOF) - fix possible null ptr dereference in sequences_hof.cpp
Diffstat (limited to 'engines')
-rw-r--r--engines/kyra/sequences_hof.cpp4
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;