From ee2bf64267bc643ce2d1bccc96a2c655b82b7c40 Mon Sep 17 00:00:00 2001 From: AndywinXp Date: Thu, 11 Apr 2024 19:27:24 +0200 Subject: [PATCH] SCUMM: HE: Fix typo in palette remapping function --- engines/scumm/he/palette_he.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/scumm/he/palette_he.cpp b/engines/scumm/he/palette_he.cpp index 0b5abdedf31..5cf7f592019 100644 --- a/engines/scumm/he/palette_he.cpp +++ b/engines/scumm/he/palette_he.cpp @@ -42,7 +42,7 @@ void ScummEngine_v71he::buildRemapTable(byte *remapTablePtr, const byte *palDPtr for (int inner = 10; inner < 246; inner++) { const byte *clutSrcEntry = &palSPtr[outer * 3]; - const byte *clutDstEntry = &palSPtr[inner * 3]; + const byte *clutDstEntry = &palDPtr[inner * 3]; distance = ( (int32)((clutSrcEntry[0] - clutDstEntry[0]) * (clutSrcEntry[0] - clutDstEntry[0])) +