diff options
-rw-r--r-- | engines/mads/msurface.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/mads/msurface.h b/engines/mads/msurface.h index 733a29d9e3..5b5a1d62c1 100644 --- a/engines/mads/msurface.h +++ b/engines/mads/msurface.h @@ -74,7 +74,9 @@ public: /** * Basic constructor */ - BaseSurface() : Graphics::Screen() {} + BaseSurface() : Graphics::Screen(0, 0) { + free(); // Free the 0x0 surface allocated by Graphics::Screen + } /** * Constructor for a surface with fixed dimensions |