diff options
author | Kostas Nakos | 2009-02-16 06:43:33 +0000 |
---|---|---|
committer | Kostas Nakos | 2009-02-16 06:43:33 +0000 |
commit | 0a04d307535bec99c57d5a469b7c449da8f5e469 (patch) | |
tree | 6d6491b65ad472dacf89c00acee1db72ca420bef /engines/tucker | |
parent | 81eb4b83caf67b45f8075b493adc5732a28526d5 (diff) | |
download | scummvm-rg350-0a04d307535bec99c57d5a469b7c449da8f5e469.tar.gz scummvm-rg350-0a04d307535bec99c57d5a469b7c449da8f5e469.tar.bz2 scummvm-rg350-0a04d307535bec99c57d5a469b7c449da8f5e469.zip |
apply patch #2603528: PCX loading (convenience only)
svn-id: r38348
Diffstat (limited to 'engines/tucker')
-rw-r--r-- | engines/tucker/resource.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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(); } |