From 9f1904d661eb9779a3d4e6ce0424742247ec4741 Mon Sep 17 00:00:00 2001 From: Lars Skovlund Date: Fri, 21 Jan 2011 22:50:30 +0000 Subject: SCI: Fix robot palette activation svn-id: r55397 --- engines/sci/graphics/robot.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/sci/graphics/robot.cpp') 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; } -- cgit v1.2.3