[Scummvm-git-logs] scummvm master -> 9dc568de2ed253119870bf08a04298e786af0789

AndywinXp noreply at scummvm.org
Sun Jul 14 06:23:00 UTC 2024


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
9dc568de2e SCUMM: SMUSH: Fix init of palette arrays


Commit: 9dc568de2ed253119870bf08a04298e786af0789
    https://github.com/scummvm/scummvm/commit/9dc568de2ed253119870bf08a04298e786af0789
Author: AndywinXp (andywinxp at gmail.com)
Date: 2024-07-14T08:22:54+02:00

Commit Message:
SCUMM: SMUSH: Fix init of palette arrays

Thanks sluicebox for noticing this!

Changed paths:
    engines/scumm/smush/smush_player.cpp


diff --git a/engines/scumm/smush/smush_player.cpp b/engines/scumm/smush/smush_player.cpp
index fc0436d9dd8..998c9708510 100644
--- a/engines/scumm/smush/smush_player.cpp
+++ b/engines/scumm/smush/smush_player.cpp
@@ -248,9 +248,9 @@ SmushPlayer::SmushPlayer(ScummEngine_v7 *scumm, IMuseDigital *imuseDigital, Insa
 	_pauseStartTime = 0;
 	_pauseTime = 0;
 
-	memset(_pal, 0, sizeof(byte));
-	memset(_deltaPal, 0, sizeof(int16));
-	memset(_shiftedDeltaPal, 0, sizeof(int32));
+	memset(_pal, 0, sizeof(_pal));
+	memset(_deltaPal, 0, sizeof(_deltaPal));
+	memset(_shiftedDeltaPal, 0, sizeof(_shiftedDeltaPal));
 
 	for (int i = 0; i < 4; i++)
 		_iactTable[i] = 0;




More information about the Scummvm-git-logs mailing list