From e494f53822d850a64a6ed96805dd95912c8576a5 Mon Sep 17 00:00:00 2001 From: Gregory Montoir Date: Tue, 14 Sep 2004 21:59:46 +0000 Subject: only clear the polygon slots when playing a HE game svn-id: r15120 --- scumm/scumm.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'scumm') diff --git a/scumm/scumm.cpp b/scumm/scumm.cpp index 8eb9b13839..2417cd5911 100644 --- a/scumm/scumm.cpp +++ b/scumm/scumm.cpp @@ -2327,8 +2327,10 @@ void ScummEngine::startScene(int room, Actor *a, int objectNr) { stopCycle(0); _sound->processSoundQues(); - for (i = 0; i < _WizNumPolygons; i++) - memset(&_WizPolygons[i], 0, sizeof(WizPolygon)); + if (_heversion >= 70 && _WizPolygons) { + for (i = 0; i < _WizNumPolygons; i++) + memset(&_WizPolygons[i], 0, sizeof(WizPolygon)); + } for (i = 0; i < _numRoomVariables; i++) _roomVars[i] = 0; -- cgit v1.2.3