From a82939c9bee20f2969f1006c1c9a836cea5c7903 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 13 Feb 2010 17:44:19 +0000 Subject: SCI: Get rid of EngineState::resMan svn-id: r48048 --- engines/sci/engine/vm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/sci/engine/vm.cpp') diff --git a/engines/sci/engine/vm.cpp b/engines/sci/engine/vm.cpp index aa7163929b..aac08c09e2 100644 --- a/engines/sci/engine/vm.cpp +++ b/engines/sci/engine/vm.cpp @@ -261,7 +261,7 @@ ExecStack *execute_method(EngineState *s, uint16 script, uint16 pubfunct, StackP Script *scr = s->_segMan->getScriptIfLoaded(seg); if (!scr || scr->isMarkedAsDeleted()) // Script not present yet? - seg = script_instantiate(s->resMan, s->_segMan, script); + seg = script_instantiate(g_sci->getResMan(), s->_segMan, script); const int temp = s->_segMan->validateExportFunc(pubfunct, seg); if (!temp) { -- cgit v1.2.3