mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 06:39:17 +00:00
SCI: Check for the existence of script 180 before accessing it.
Fixes the Longbow demo svn-id: r52344
This commit is contained in:
parent
ff9b897d8c
commit
cd61674010
@ -314,7 +314,7 @@ Common::Error SciEngine::run() {
|
||||
// Refer to bug #3036609.
|
||||
Resource *buggyScript = _resMan->findResource(ResourceId(kResourceTypeScript, 180), 0);
|
||||
|
||||
if (buggyScript->size == 12354 || buggyScript->size == 12362) {
|
||||
if (buggyScript && (buggyScript->size == 12354 || buggyScript->size == 12362)) {
|
||||
showScummVMDialog("A known buggy game script has been detected, which could "
|
||||
"prevent you from progressing later on in the game, during "
|
||||
"the sequence with the Green Man's riddles. Please, apply "
|
||||
|
Loading…
Reference in New Issue
Block a user