aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorMax Horn2006-05-28 12:12:30 +0000
committerMax Horn2006-05-28 12:12:30 +0000
commitd5c74ee633fcedf706f72e3398256d4a19efd834 (patch)
tree7c05a1ef6bd8b6e1049b2fc0dc415d2c4b291ccf /engines/scumm
parenta442af27034c6cf679faf8b425cb11232e4a5958 (diff)
downloadscummvm-rg350-d5c74ee633fcedf706f72e3398256d4a19efd834.tar.gz
scummvm-rg350-d5c74ee633fcedf706f72e3398256d4a19efd834.tar.bz2
scummvm-rg350-d5c74ee633fcedf706f72e3398256d4a19efd834.zip
No need to compute the SCUMM version here; rather, verify that the SCUMM version is already set correctly
svn-id: r22715
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/resource_v2.cpp7
1 files 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: