Added note that the previous commit probably fixed bug #933610 as well.

svn-id: r13599
This commit is contained in:
Torbjörn Andersson 2004-04-20 07:21:25 +00:00
parent ac967bde63
commit dfe25fbfd8
2 changed files with 7 additions and 5 deletions

View File

@ -2111,7 +2111,8 @@ void ScummEngine::readMAXS() {
_numLocalObjects = _fileHandle.readUint16LE(); // 200
_numArray = 50;
_numVerbs = 100;
// Used to be 50, which wasn't enough for MI2. See bug #936323.
// Used to be 50, which wasn't enough for MI2 and FOA. See bugs
// #933610 and #936323.
_numNewNames = 100;
_objectRoomTable = NULL;

View File

@ -824,10 +824,11 @@ void ScummEngine::saveLoadResource(Serializer *ser, int type, int idx) {
}
if (type == rtObjectName && ser->getVersion() >= VER(25)) {
// Paranoia: We increased the possible number of new names
// for MI2 to fix bug #936323. The savegame format didn't
// change, but at least during the transition period there
// is a slight chance that we try to load more names than
// we have allocated space for. If so, discard them.
// to fix bugs #933610 and #936323. The savegame format
// didn't change, but at least during the transition
// period there is a slight chance that we try to load
// more names than we have allocated space for. If so,
// discard them.
if (idx < _numNewNames)
_newNames[idx] = ser->loadUint16();
}