diff options
author | Gregory Montoir | 2004-01-14 15:51:54 +0000 |
---|---|---|
committer | Gregory Montoir | 2004-01-14 15:51:54 +0000 |
commit | b1141ae71718d4693c637d4c169bef37ae1cc036 (patch) | |
tree | c56c5b5b9bc88d36e0aa64e3bf5f17e36179109d /queen/cutaway.cpp | |
parent | 4bc769c33b7e246bb149d5f9958e646d771818c7 (diff) | |
download | scummvm-rg350-b1141ae71718d4693c637d4c169bef37ae1cc036.tar.gz scummvm-rg350-b1141ae71718d4693c637d4c169bef37ae1cc036.tar.bz2 scummvm-rg350-b1141ae71718d4693c637d4c169bef37ae1cc036.zip |
bumped Cutaway::_personFace array size, as during intro Cutaway::_personFaceCount max value is 12
svn-id: r12388
Diffstat (limited to 'queen/cutaway.cpp')
-rw-r--r-- | queen/cutaway.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/queen/cutaway.cpp b/queen/cutaway.cpp index a1fb7ef3d3..63a0d9c127 100644 --- a/queen/cutaway.cpp +++ b/queen/cutaway.cpp @@ -342,6 +342,7 @@ void Cutaway::changeRooms(CutawayObject &object) { if (objectData->image == -3 || objectData->image == -4) { + assert(_personDataCount < MAX_PERSON_COUNT); // The object is a person! So record the details... _personData[_personDataCount].index = i; _personData[_personDataCount].name = objectData->name; @@ -835,6 +836,7 @@ void Cutaway::handlePersonRecord( if (!foundPerson) { _personFaceCount++; + assert(_personFaceCount < MAX_PERSON_FACE_COUNT); _personFace[_personFaceCount].index = object.objectNumber; _personFace[_personFaceCount].image = _vm->logic()->objectData(object.objectNumber)->image; } |