mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
KYRA: Clear program queue (non-trivial type) without memset
This commit is contained in:
1 parent
7124ea9b38
commit
189ee12cec
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user