aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/eob.cpp
diff options
context:
space:
mode:
authorathrxx2013-01-12 16:47:08 +0100
committerathrxx2013-04-14 13:12:06 +0200
commita33045f4fa50b9c5d9755ad287e7bc19293db911 (patch)
tree82c59b0716fa7151b4385ae55aea3a4fe24640fb /engines/kyra/eob.cpp
parent12864da659f698427d484dc09df598962db2ab41 (diff)
downloadscummvm-rg350-a33045f4fa50b9c5d9755ad287e7bc19293db911.tar.gz
scummvm-rg350-a33045f4fa50b9c5d9755ad287e7bc19293db911.tar.bz2
scummvm-rg350-a33045f4fa50b9c5d9755ad287e7bc19293db911.zip
KYRA: (EOB) - fix bug #3600348
(EOB1: Crash when moving in German version)
Diffstat (limited to 'engines/kyra/eob.cpp')
-rw-r--r--engines/kyra/eob.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/kyra/eob.cpp b/engines/kyra/eob.cpp
index 4e1707b1ac..1fb4d0a790 100644
--- a/engines/kyra/eob.cpp
+++ b/engines/kyra/eob.cpp
@@ -387,6 +387,8 @@ void EoBEngine::loadDoorShapes(int doorType1, int shapeId1, int doorType2, int s
void EoBEngine::drawDoorIntern(int type, int index, int x, int y, int w, int wall, int mDim, int16 y1, int16 y2) {
int shapeIndex = type + 2 - mDim;
uint8 *shp = _doorShapes[shapeIndex];
+ if (!shp)
+ return;
int d1 = 0;
int d2 = 0;