diff options
author | athrxx | 2013-04-15 21:40:42 +0200 |
---|---|---|
committer | athrxx | 2013-04-18 16:10:39 +0200 |
commit | 0a623ecdece7fd90525f81fcbba2a937986098cf (patch) | |
tree | 2805603c583257d3de84be3f61b2f4b3801f8fa3 /engines/kyra | |
parent | 2c973a6bff6b83ac803a4a2a2c7e189fd730df7b (diff) | |
download | scummvm-rg350-0a623ecdece7fd90525f81fcbba2a937986098cf.tar.gz scummvm-rg350-0a623ecdece7fd90525f81fcbba2a937986098cf.tar.bz2 scummvm-rg350-0a623ecdece7fd90525f81fcbba2a937986098cf.zip |
KYRA: (EOB) - fix potential null ptr dereference in sprites_eob.cpp
Diffstat (limited to 'engines/kyra')
-rw-r--r-- | engines/kyra/sprites_eob.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/kyra/sprites_eob.cpp b/engines/kyra/sprites_eob.cpp index bb54183fb4..f713508063 100644 --- a/engines/kyra/sprites_eob.cpp +++ b/engines/kyra/sprites_eob.cpp @@ -247,6 +247,9 @@ void EoBCoreEngine::updateAttackingMonsterFlags() { m2 = m; } + if (!m2) + return; + if (m2->type == 7) setScriptFlags(4); |