From 26b284a93eb9b90506b0767743d6e82c60a36336 Mon Sep 17 00:00:00 2001 From: Lionel Ulmer Date: Wed, 13 Nov 2002 15:44:33 +0000 Subject: Some other inits added to prepare for the 'new / delete' overloading removal. svn-id: r5537 --- scumm/scummvm.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'scumm') 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; -- cgit v1.2.3