aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
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: