From f1696ce7efe9be755a0e0f69bfbad210649a74c7 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Thu, 14 Jan 2010 20:53:37 +0000 Subject: SCI: change on reanimate kDisposeWindow behaviour, fixes sq5 window removal svn-id: r47299 --- engines/sci/engine/kgraphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/sci') diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp index 42d0e1ba8c..0dae446b22 100644 --- a/engines/sci/engine/kgraphics.cpp +++ b/engines/sci/engine/kgraphics.cpp @@ -922,7 +922,7 @@ reg_t kDrawCel(EngineState *s, int argc, reg_t *argv) { reg_t kDisposeWindow(EngineState *s, int argc, reg_t *argv) { int goner_nr = argv[0].toSint16(); bool reanimate = true; - if ((argc == 2) && (argv[1].isNull())) + if ((argc == 2) && (!argv[1].isNull())) reanimate = false; s->_gui->disposeWindow(goner_nr, reanimate); -- cgit v1.2.3