From 701caea8d7b5f462df106a093051f534b3f1699b Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Fri, 23 Oct 2009 20:41:59 +0000 Subject: SCI: kAddToPic - abort when list is null reference (fixes qfg1 saved game loading on some screens) svn-id: r45351 --- engines/sci/engine/kgraphics.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp index fe2ac41058..64a042c2c4 100644 --- a/engines/sci/engine/kgraphics.cpp +++ b/engines/sci/engine/kgraphics.cpp @@ -841,6 +841,8 @@ reg_t kAddToPic(EngineState *s, int argc, reg_t *argv) { case 0: break; case 1: + if (argv[0].isNull()) + return s->r_acc; s->_gui->addToPicList(argv[0], argc, argv); break; case 7: -- cgit v1.2.3