diff options
-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(); } |