[Scummvm-git-logs] scummvm master -> 04ee184a9076197243104c93384daba59449a4c8

dreammaster noreply at scummvm.org
Tue May 12 12:30:58 UTC 2026


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

Summary:
04ee184a90 MADS: PHANTOM: Compilation fix


Commit: 04ee184a9076197243104c93384daba59449a4c8
    https://github.com/scummvm/scummvm/commit/04ee184a9076197243104c93384daba59449a4c8
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2026-05-12T22:30:50+10:00

Commit Message:
MADS: PHANTOM: Compilation fix

Changed paths:
    engines/mads/madsv2/animview/animview.cpp


diff --git a/engines/mads/madsv2/animview/animview.cpp b/engines/mads/madsv2/animview/animview.cpp
index 3add3c06c25..c3ce66a8acc 100644
--- a/engines/mads/madsv2/animview/animview.cpp
+++ b/engines/mads/madsv2/animview/animview.cpp
@@ -294,7 +294,7 @@ static bool anim_fade(Palette *pal, int fadeAmount) {
 	bool palChanged = false;
 	byte *rgb = (byte *)pal;
 	for (int count = 0; count < Graphics::PALETTE_SIZE; ++count, ++pal) {
-		*rgb = MAX((int)*pal - fadeAmount, 0);
+		*rgb = MAX((int)*rgb - fadeAmount, 0);
 		if (*rgb)
 			palChanged = true;
 	}




More information about the Scummvm-git-logs mailing list