KYRA: Clear program queue (non-trivial type) without memset

This commit is contained in:
Alexander Miller authored and athrxx committed 2020-12-19 03:15:35 +01:00
1 parent 7124ea9b38
commit 189ee12cec
1 file changed
+1 -1
+1 -1
View File
@@ -451,7 +451,7 @@ void AdLibDriver::setSoundData(uint8 *data, uint32 size) {
// Drop all tracks that are still queued. These would point to the old
// sound data.
_programQueueStart = _programQueueEnd = 0;
memset(_programQueue, 0, sizeof(_programQueue));
_programQueue[0] = QueueEntry();
_sfxPointer = nullptr;