From d5c74ee633fcedf706f72e3398256d4a19efd834 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 28 May 2006 12:12:30 +0000 Subject: No need to compute the SCUMM version here; rather, verify that the SCUMM version is already set correctly svn-id: r22715 --- engines/scumm/resource_v2.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/engines/scumm/resource_v2.cpp b/engines/scumm/resource_v2.cpp index de28204aa8..f10ee8555a 100644 --- a/engines/scumm/resource_v2.cpp +++ b/engines/scumm/resource_v2.cpp @@ -174,23 +174,24 @@ void ScummEngine_v2::readIndexFile() { switch (magic) { case 0x0100: printf("Enhanced V2 game detected\n"); + assert(_game.version == 2); readEnhancedIndexFile(); break; case 0x0A31: printf("Classic V1 game detected\n"); - _game.version = 1; + assert(_game.version == 1); readClassicIndexFile(); break; case 0x4643: if (!(_game.platform == Common::kPlatformNES)) error("Use maniac target"); printf("NES V1 game detected\n"); - _game.version = 1; + assert(_game.version == 1); readClassicIndexFile(); break; case 0x132: printf("C64 V1 game detected\n"); - _game.version = 1; + assert(_game.version == 1); readClassicIndexFile(); break; default: -- cgit v1.2.3