diff --git a/scumm/scumm.cpp b/scumm/scumm.cpp index d43e27a7253..a7e40493d54 100644 --- a/scumm/scumm.cpp +++ b/scumm/scumm.cpp @@ -2038,9 +2038,10 @@ void ScummEngine::startScene(int room, Actor *a, int objectNr) { stopCycle(0); _sound->processSoundQues(); - if (_heversion >= 71) { + if (_heversion >= 71) ((ScummEngine_v70he *)this)->_wiz.polygonClear(); - } + if (_heversion >= 72) + ((ScummEngine_v72he *)this)->_wiz.imageNumClear(); // For HE80+ games for (i = 0; i < _numRoomVariables; i++) diff --git a/scumm/wiz_he.cpp b/scumm/wiz_he.cpp index de3d2390d44..8ceb4fccced 100644 --- a/scumm/wiz_he.cpp +++ b/scumm/wiz_he.cpp @@ -35,6 +35,10 @@ Wiz::Wiz() { memset(&_polygons, 0, sizeof(_polygons)); } +void Wiz::imageNumClear() { + _imagesNum = 0; +} + void Wiz::polygonClear() { memset(&_polygons, 0, sizeof(_polygons)); } diff --git a/scumm/wiz_he.h b/scumm/wiz_he.h index e6aa58f745a..dceb398397b 100644 --- a/scumm/wiz_he.h +++ b/scumm/wiz_he.h @@ -109,6 +109,7 @@ struct Wiz { WizPolygon _polygons[NUM_POLYGONS]; Wiz(); + void imageNumClear(); void polygonClear(); void polygonLoad(const uint8 *polData);