From fbc9fe03c089d4d5d344370460b7c7ad3afc38be Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Fri, 15 Jan 2016 02:46:35 +0200 Subject: SCI: Allow null references to kStringGetData, for Torin's Passage Added a TODO for rhis, for now --- engines/sci/engine/kernel_tables.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/sci/engine/kernel_tables.h b/engines/sci/engine/kernel_tables.h index b1df235cb0..2d0f1c3933 100644 --- a/engines/sci/engine/kernel_tables.h +++ b/engines/sci/engine/kernel_tables.h @@ -324,7 +324,9 @@ static const SciKernelMapSubEntry kString_subops[] = { // =SCI2, SCI2.1 Early and SCI2.1 Middle= { SIG_UNTIL_SCI21MID, 8, MAP_CALL(StringDup), "[or]", NULL }, - { SIG_UNTIL_SCI21MID, 9, MAP_CALL(StringGetData), "[or]", NULL }, + // TODO: This gets called with null references in Torin. Check if this is correct, or it's + // caused by missing functionality + { SIG_UNTIL_SCI21MID, 9, MAP_CALL(StringGetData), "[or0]", NULL }, { SIG_UNTIL_SCI21MID, 10, MAP_CALL(StringLen), "[or]", NULL }, { SIG_UNTIL_SCI21MID, 11, MAP_CALL(StringPrintf), "[or](.*)", NULL }, { SIG_UNTIL_SCI21MID, 12, MAP_CALL(StringPrintfBuf), "[or](.*)", NULL }, -- cgit v1.2.3