Fix for bug #953302 (COMI: Crash when you choose Rottingham as your first oponent); this would be suitable for the 0.6.x branch, too...

svn-id: r14401
This commit is contained in:
Max Horn 2004-08-01 01:19:54 +00:00
parent f1cfbe9065
commit 98ea92322b

View File

@ -544,13 +544,7 @@ void ScummEngine_v8::readArrayFromIndexFile() {
a = _fileHandle.readUint32LE();
b = _fileHandle.readUint32LE();
// WORKAROUND: seems the COMI scripts have a bug related to array 436.
// and visible in script 2015, room 20. Basically, the dimensions
// are swapped in the definition of the array, but its obvious
// that this must be a script bug simply by looking at the defintions
// of other arrays and how they are used.
// Talk to fingolfin if you have questions about this :-)
if (num == 436)
if (b != 0)
defineArray(num, 5, b, a);
else
defineArray(num, 5, a, b);