aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/robot.cpp
diff options
context:
space:
mode:
authorLars Skovlund2011-01-21 22:50:30 +0000
committerLars Skovlund2011-01-21 22:50:30 +0000
commit9f1904d661eb9779a3d4e6ce0424742247ec4741 (patch)
tree5d65d65ddf7132f4fd78f20e0719cfabe070a664 /engines/sci/graphics/robot.cpp
parent5469aa1687180f9c236df9f780731c6f75afc4e6 (diff)
downloadscummvm-rg350-9f1904d661eb9779a3d4e6ce0424742247ec4741.tar.gz
scummvm-rg350-9f1904d661eb9779a3d4e6ce0424742247ec4741.tar.bz2
scummvm-rg350-9f1904d661eb9779a3d4e6ce0424742247ec4741.zip
SCI: Fix robot palette activation
svn-id: r55397
Diffstat (limited to 'engines/sci/graphics/robot.cpp')
-rw-r--r--engines/sci/graphics/robot.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/graphics/robot.cpp b/engines/sci/graphics/robot.cpp
index caa2f89cab..3e57e29854 100644
--- a/engines/sci/graphics/robot.cpp
+++ b/engines/sci/graphics/robot.cpp
@@ -148,9 +148,9 @@ void GfxRobot::draw(int x, int y) {
for (int i = 0; i < colorCount; ++i)
{
int index = i + startIndex;
- robotPal[index*4] = resourcePal.colors[i].r;
- robotPal[index*4+1] = resourcePal.colors[i].g;
- robotPal[index*4+2] = resourcePal.colors[i].b;
+ robotPal[index*4] = resourcePal.colors[index].r;
+ robotPal[index*4+1] = resourcePal.colors[index].g;
+ robotPal[index*4+2] = resourcePal.colors[index].b;
robotPal[index*4+3] = 0;
}