diff options
author | Max Horn | 2006-05-28 12:12:30 +0000 |
---|---|---|
committer | Max Horn | 2006-05-28 12:12:30 +0000 |
commit | d5c74ee633fcedf706f72e3398256d4a19efd834 (patch) | |
tree | 7c05a1ef6bd8b6e1049b2fc0dc415d2c4b291ccf | |
parent | a442af27034c6cf679faf8b425cb11232e4a5958 (diff) | |
download | scummvm-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
-rw-r--r-- | engines/scumm/resource_v2.cpp | 7 |
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: |