From d36eae4c17f15fe05d5a18508dd0b6fddfa1c96f Mon Sep 17 00:00:00 2001 From: Eric Fry Date: Tue, 26 Jun 2018 22:38:24 +1000 Subject: ILLUSIONS: Fix typo in palette cycle logic. Fix uninitialised local variable --- engines/illusions/screen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/illusions/screen.cpp') diff --git a/engines/illusions/screen.cpp b/engines/illusions/screen.cpp index f935315535..b2a970c12c 100644 --- a/engines/illusions/screen.cpp +++ b/engines/illusions/screen.cpp @@ -272,7 +272,7 @@ void ScreenPalette::shiftPalette(int16 fromIndex, int16 toIndex) { r = _mainPalette[3 * toIndex + 0]; g = _mainPalette[3 * toIndex + 1]; b = _mainPalette[3 * toIndex + 2]; - for (int16 i = toIndex + 1; i < fromIndex; +i) { //TODO fix this. +i + for (int16 i = toIndex + 1; i < fromIndex; ++i) { byte *dst = &_mainPalette[3 * i]; byte *src = &_mainPalette[3 * (i + 1)]; dst[0] = src[0]; -- cgit v1.2.3