aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/text32.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2012-05-14 11:04:58 +0300
committerFilippos Karapetis2012-05-14 11:04:58 +0300
commit6b38731d393cdc85937c74b301df5f3b3de5af9e (patch)
tree9151e40bc48fdf35f126a4779b75acdd9fdace43 /engines/sci/graphics/text32.cpp
parent398d0ffceffc2dc1241b3f667c180573c288ccbf (diff)
downloadscummvm-rg350-6b38731d393cdc85937c74b301df5f3b3de5af9e.tar.gz
scummvm-rg350-6b38731d393cdc85937c74b301df5f3b3de5af9e.tar.bz2
scummvm-rg350-6b38731d393cdc85937c74b301df5f3b3de5af9e.zip
SCI: Implement savegame deletion functionality in SCI32
This is based on two kernel functions, kMakeSaveCatName and kMakeSaveFileName
Diffstat (limited to 'engines/sci/graphics/text32.cpp')
-rw-r--r--engines/sci/graphics/text32.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/sci/graphics/text32.cpp b/engines/sci/graphics/text32.cpp
index 7894c7109c..cd24ca5a99 100644
--- a/engines/sci/graphics/text32.cpp
+++ b/engines/sci/graphics/text32.cpp
@@ -187,8 +187,11 @@ void GfxText32::drawTextBitmap(int16 x, int16 y, Common::Rect planeRect, reg_t t
byte *memoryPtr = _segMan->getHunkPointer(hunkId);
- if (!memoryPtr)
- error("Attempt to draw an invalid text bitmap");
+ if (!memoryPtr) {
+ // Happens when restoring in some SCI32 games
+ warning("Attempt to draw an invalid text bitmap");
+ return;
+ }
byte *surface = memoryPtr + BITMAP_HEADER_SIZE;