diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/kyra/items_eob.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/kyra/items_eob.cpp b/engines/kyra/items_eob.cpp index c9c632f60b..e2d4b1be56 100644 --- a/engines/kyra/items_eob.cpp +++ b/engines/kyra/items_eob.cpp @@ -643,7 +643,8 @@ void EoBCoreEngine::explodeObject(EoBFlyingObject *fo, int block, Item item) { int b = _expObjectTlMode ? _expObjectTlMode[tl] : 2; - if (b == 0 || (b == 1 && (fo->direction & 1) == (_currentDirection & 1))) { + uint8 fdr = fo ? fo->direction : 0; + if (b == 0 || (b == 1 && (fdr & 1) == (_currentDirection & 1))) { snd_processEnvironmentalSoundEffect(35, _currentBlock); return; } |