aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/palette.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2014-04-11 09:34:46 -0400
committerPaul Gilbert2014-04-11 09:34:46 -0400
commitf548711b7740fcaa01027a9184e4ae90a1c792e9 (patch)
tree2a7cf37400937f49713cb83fbbc0c04d860c8d87 /engines/mads/palette.cpp
parent9ef9dd24c273950328a4f5ea99b36c91b4a4de81 (diff)
downloadscummvm-rg350-f548711b7740fcaa01027a9184e4ae90a1c792e9.tar.gz
scummvm-rg350-f548711b7740fcaa01027a9184e4ae90a1c792e9.tar.bz2
scummvm-rg350-f548711b7740fcaa01027a9184e4ae90a1c792e9.zip
MADS: Fix palette transformation during SceneInfo::load
Diffstat (limited to 'engines/mads/palette.cpp')
-rw-r--r--engines/mads/palette.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/mads/palette.cpp b/engines/mads/palette.cpp
index 34ba0acf54..2ff16fb5c1 100644
--- a/engines/mads/palette.cpp
+++ b/engines/mads/palette.cpp
@@ -250,7 +250,7 @@ void PaletteUsage::transform(Common::Array<RGB6> &palette) {
if (!empty()) {
for (uint i = 0; i < _data.size(); ++i) {
int palIndex = _data[i]._palIndex;
- _data[i] = palette[palIndex]._palIndex;
+ _data[i]._palIndex = palette[palIndex]._palIndex;
}
}
}