aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authormd52011-02-20 00:19:08 +0200
committermd52011-02-20 00:19:08 +0200
commit28dae010fb859b0b42e4f433bc4f72b08c036fbb (patch)
treed075556ea735310ae02fd801dd4274bcdd335be9 /engines
parentef38e4f57f32f495b7f1d8289306e6d829394aeb (diff)
downloadscummvm-rg350-28dae010fb859b0b42e4f433bc4f72b08c036fbb.tar.gz
scummvm-rg350-28dae010fb859b0b42e4f433bc4f72b08c036fbb.tar.bz2
scummvm-rg350-28dae010fb859b0b42e4f433bc4f72b08c036fbb.zip
SAGA: Fixed palette setting inside Gfx::setPaletteColor() (thanks to LordHoto for noticing this)
Diffstat (limited to 'engines')
-rw-r--r--engines/saga/gfx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/saga/gfx.cpp b/engines/saga/gfx.cpp
index c46da4cd4e..5fc2082178 100644
--- a/engines/saga/gfx.cpp
+++ b/engines/saga/gfx.cpp
@@ -238,7 +238,7 @@ void Gfx::setPaletteColor(int n, int r, int g, int b) {
}
if (update)
- _system->getPaletteManager()->setPalette(_currentPal, n, 1);
+ _system->getPaletteManager()->setPalette(_currentPal + n * 3, n, 1);
}
void Gfx::getCurrentPal(PalEntry *src_pal) {