aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/dm/gfx.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/dm/gfx.cpp b/engines/dm/gfx.cpp
index 73621cacdf..6060d9f3f0 100644
--- a/engines/dm/gfx.cpp
+++ b/engines/dm/gfx.cpp
@@ -3740,6 +3740,7 @@ byte* DisplayMan::f492_getDerivedBitmap(int16 derivedBitmapIndex) {
void DisplayMan::f493_addDerivedBitmap(int16 derivedBitmapIndex) {}
void DisplayMan::f480_releaseBlock(uint16 index) {
+ index &= ~0x8000;
delete[] _g638_derivedBitmaps[index];
_g638_derivedBitmaps[index] = nullptr;
}