Fix #23464: Water sparkles don't work properly (#23467)

This commit is contained in:
Aaron van Geffen 2024-12-23 16:38:26 +01:00 committed by GitHub
parent 809bcd1b22
commit f39eebdc76
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1059,7 +1059,7 @@ void UpdatePaletteEffects()
int32_t n = kPaletteLengthWaterSparkles;
for (int32_t i = 0; i < n; i++)
{
auto& vd = gGamePalette[kPaletteOffsetWaterSparkles];
auto& vd = gGamePalette[kPaletteOffsetWaterSparkles + i];
vd.Blue = vs[0];
vd.Green = vs[1];
vd.Red = vs[2];