aboutsummaryrefslogtreecommitdiff
path: root/engines/chewy/graphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/chewy/graphics.cpp')
-rw-r--r--engines/chewy/graphics.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/chewy/graphics.cpp b/engines/chewy/graphics.cpp
index 5127607b01..2369d32600 100644
--- a/engines/chewy/graphics.cpp
+++ b/engines/chewy/graphics.cpp
@@ -30,8 +30,8 @@ namespace Chewy {
void Graphics::drawImage(Common::String filename, int imageNum) {
Resource *res = new Resource("comic.tgp");
- TBFChunk *cur = res->getChunk(0);
- byte *buf = res->getChunkData(0);
+ TBFChunk *cur = res->getChunk(imageNum);
+ byte *buf = res->getChunkData(imageNum);
g_system->getPaletteManager()->setPalette(cur->palette, 0, 256);
g_system->copyRectToScreen(buf, cur->width, 0, 0, cur->width, cur->height);