From 5ed0770401ed12d8be5f8e11f10f978789f1ae3d Mon Sep 17 00:00:00 2001 From: athrxx Date: Mon, 15 Apr 2013 22:00:02 +0200 Subject: KYRA: (HOF) - fix possible null ptr dereference in sequences_hof.cpp --- engines/kyra/sequences_hof.cpp | 4 ++-- 1 file 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; -- cgit v1.2.3