aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sci/graphics/view.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/sci/graphics/view.cpp b/engines/sci/graphics/view.cpp
index 04ac6e1bed..e6e8644723 100644
--- a/engines/sci/graphics/view.cpp
+++ b/engines/sci/graphics/view.cpp
@@ -363,8 +363,7 @@ byte *View::getBitmap(LoopNo loopNo, CelNo celNo) {
uint16 width = _loop[loopNo].cel[celNo].width;
uint16 height = _loop[loopNo].cel[celNo].height;
// allocating memory to store cel's bitmap
- assert(width * height <= 64000);
- uint16 pixelCount = width * height;
+ int pixelCount = width * height;
_loop[loopNo].cel[celNo].rawBitmap = new byte[pixelCount];
byte *pBitmap = _loop[loopNo].cel[celNo].rawBitmap;