From c97d5297870526f9a138d8d3af9357da0b3f8e93 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Tue, 14 Sep 2004 11:35:15 +0000 Subject: polygon slots should be cleared in startScene svn-id: r15114 --- scumm/scumm.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scumm') diff --git a/scumm/scumm.cpp b/scumm/scumm.cpp index e3ec63feb8..914bb21d1b 100644 --- a/scumm/scumm.cpp +++ b/scumm/scumm.cpp @@ -2326,7 +2326,9 @@ void ScummEngine::startScene(int room, Actor *a, int objectNr) { stopCycle(0); _sound->processSoundQues(); - // Clear the room variables + 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