From 3a5cd65d6d03c2e2f17656571f8528ef6ea8f039 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Mon, 19 Sep 2016 09:49:21 +0300 Subject: CHEWY: Bugfix for drawImage() --- engines/chewy/graphics.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/chewy/graphics.cpp') 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); -- cgit v1.2.3