aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/gfx
diff options
context:
space:
mode:
authorEugene Sandulenko2011-06-26 16:09:38 +0300
committerEugene Sandulenko2011-06-26 16:10:34 +0300
commitbce549f42a374e47c5de794c863d6cbe0842bfb4 (patch)
tree1301ba975ce42b29fc3bada73e1b41eebe85a793 /engines/sword25/gfx
parent12635ee198e0e012346f0d8105a02ce615721873 (diff)
downloadscummvm-rg350-bce549f42a374e47c5de794c863d6cbe0842bfb4.tar.gz
scummvm-rg350-bce549f42a374e47c5de794c863d6cbe0842bfb4.tar.bz2
scummvm-rg350-bce549f42a374e47c5de794c863d6cbe0842bfb4.zip
SWORD25: Fix bug with loading saves when some saves are missing
Diffstat (limited to 'engines/sword25/gfx')
-rw-r--r--engines/sword25/gfx/staticbitmap.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/sword25/gfx/staticbitmap.cpp b/engines/sword25/gfx/staticbitmap.cpp
index 60ad94e20f..0ae07b36b5 100644
--- a/engines/sword25/gfx/staticbitmap.cpp
+++ b/engines/sword25/gfx/staticbitmap.cpp
@@ -170,7 +170,10 @@ bool StaticBitmap::unpersist(InputPersistenceBlock &reader) {
result &= Bitmap::unpersist(reader);
Common::String resourceFilename;
reader.readString(resourceFilename);
- result &= initBitmapResource(resourceFilename);
+ // We may not have saves, and we actually do not need to
+ // restore them. So do not even try to load them.
+ if (!resourceFilename.hasPrefix("/saves"))
+ result &= initBitmapResource(resourceFilename);
result &= RenderObject::unpersistChildren(reader);