aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backends/x11/x11.cpp2
-rw-r--r--scumm/scummvm.cpp9
2 files changed, 9 insertions, 2 deletions
diff --git a/backends/x11/x11.cpp b/backends/x11/x11.cpp
index 3c0e7ee496..7152ad490d 100644
--- a/backends/x11/x11.cpp
+++ b/backends/x11/x11.cpp
@@ -322,7 +322,7 @@ OSystem_X11::OSystem_X11()
current_shake_pos = 0;
new_shake_pos = 0;
_palette_changed = false;
- num_of_dirty_square = MAX_NUMBER_OF_DIRTY_SQUARES;
+ num_of_dirty_square = 0;
_overlay_visible = false;
_mouse_state_changed = true;
_mouse_visible = true;
diff --git a/scumm/scummvm.cpp b/scumm/scummvm.cpp
index 9cd5fe20e8..74b466e199 100644
--- a/scumm/scummvm.cpp
+++ b/scumm/scummvm.cpp
@@ -108,7 +108,14 @@ Scumm::Scumm (GameDetector *detector, OSystem *syst)
_noSubtitles = detector->_noSubtitles;
_defaultTalkDelay = detector->_talkSpeed;
_use_adlib = detector->_use_adlib;
-
+ memset(&res, 0, sizeof(res));
+ _allocatedSize = 0;
+ _roomResource = 0;
+ _lastLoadedRoom = 0;
+ _expire_counter = 0;
+ _dynamicRoomOffsets = 0;
+ _shakeEnabled = 0;
+
if (_gameId == GID_ZAK256) { // FmTowns is 320x240
_realWidth = 320;
_realHeight = 240;