From 0a04d307535bec99c57d5a469b7c449da8f5e469 Mon Sep 17 00:00:00 2001 From: Kostas Nakos Date: Mon, 16 Feb 2009 06:43:33 +0000 Subject: apply patch #2603528: PCX loading (convenience only) svn-id: r38348 --- engines/tucker/resource.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engines/tucker') diff --git a/engines/tucker/resource.cpp b/engines/tucker/resource.cpp index d94b7b403f..489eef666a 100644 --- a/engines/tucker/resource.cpp +++ b/engines/tucker/resource.cpp @@ -268,7 +268,8 @@ void TuckerEngine::loadImage(const char *fname, uint8 *dst, int type) { } } if (type != 0) { - f.seek(-768, SEEK_END); + if (f.readByte() != 12) + return; f.read(_currentPalette, 768); setBlackPalette(); } -- cgit v1.2.3