diff options
-rw-r--r-- | engines/sword25/gfx/image/b25sloader.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/sword25/gfx/image/b25sloader.cpp b/engines/sword25/gfx/image/b25sloader.cpp index 43313ba93e..74c311990c 100644 --- a/engines/sword25/gfx/image/b25sloader.cpp +++ b/engines/sword25/gfx/image/b25sloader.cpp @@ -47,6 +47,9 @@ namespace Sword25 { namespace { unsigned int FindEmbeddedPNG(const byte *FileDataPtr, unsigned int FileSize) { + if (memcmp(FileDataPtr, "BS25SAVEGAME", 12)) + return 0; + #if 0 // Einen Stringstream mit dem Anfang der Datei intialisieren. 512 Byte sollten hierfür genügen. istringstream StringStream(string(FileDataPtr, FileDataPtr + min(static_cast<unsigned int>(512), FileSize))); |