From e03fba03b5362df7133b77ceebe7f86d9fd39caf Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Thu, 14 May 2009 11:46:02 +0000 Subject: [PATCH] Cleanup svn-id: r40558 --- engines/sci/engine/savegame.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp index a88deff5a1c..4a9f7613b2f 100644 --- a/engines/sci/engine/savegame.cpp +++ b/engines/sci/engine/savegame.cpp @@ -562,15 +562,9 @@ static void load_script(EngineState *s, SegmentId seg) { if (s->version >= SCI_VERSION(1,001,000)) heap = s->resmgr->findResource(kResourceTypeHeap, scr->nr, 0); - switch (s->seg_manager->isSci1_1) { - case 0 : - s->seg_manager->mcpyInOut(0, script->data, script->size, seg, SEG_ID); - break; - case 1 : - s->seg_manager->mcpyInOut(0, script->data, script->size, seg, SEG_ID); + s->seg_manager->mcpyInOut(0, script->data, script->size, seg, SEG_ID); + if (s->seg_manager->isSci1_1) s->seg_manager->mcpyInOut(scr->script_size, heap->data, heap->size, seg, SEG_ID); - break; - } } // FIXME: The following should likely become a SegManager method