diff options
Diffstat (limited to 'engines/drascula')
-rw-r--r-- | engines/drascula/graphics.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/drascula/graphics.cpp b/engines/drascula/graphics.cpp index 09ff3c6429..dfe012a2ef 100644 --- a/engines/drascula/graphics.cpp +++ b/engines/drascula/graphics.cpp @@ -196,6 +196,11 @@ void DrasculaEngine::copyRect(int xorg, int yorg, int xdes, int ydes, int width, dest += xdes + ydes * 320; src += xorg + yorg * 320; + assert(xorg >= 0); + assert(yorg >= 0); + assert(xorg + width <= 320); + assert(yorg + height <= 200); + int ptr = 0; for (y = 0; y < height; y++) { for (x = 0; x < width; x++) { |