diff options
Diffstat (limited to 'engines/tsage/graphics.cpp')
-rw-r--r-- | engines/tsage/graphics.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/tsage/graphics.cpp b/engines/tsage/graphics.cpp index f55605fbac..93bb7ea63f 100644 --- a/engines/tsage/graphics.cpp +++ b/engines/tsage/graphics.cpp @@ -277,6 +277,7 @@ void GfxSurface::setSurface(Graphics::Surface *s) { * Specifies that the surface should maintain it's own internal surface */ void GfxSurface::create(int width, int height) { + assert((width >= 0) && (height >= 0)); _screenSurface = false; _customSurface = new Graphics::Surface(); _customSurface->create(width, height, 1); |