diff options
author | Colin Snover | 2017-11-12 13:47:51 -0600 |
---|---|---|
committer | Eugene Sandulenko | 2017-11-18 22:35:12 +0100 |
commit | 0cc0b1932e7feb97b15810ed9748a55a20947763 (patch) | |
tree | 6ad3de78cc2ff5621911d37f679d74206bca0665 /engines/fullpipe/fullpipe.cpp | |
parent | 8e0c53de180d2e0de613934f1dedbfd4aa5fdf7c (diff) | |
download | scummvm-rg350-0cc0b1932e7feb97b15810ed9748a55a20947763.tar.gz scummvm-rg350-0cc0b1932e7feb97b15810ed9748a55a20947763.tar.bz2 scummvm-rg350-0cc0b1932e7feb97b15810ed9748a55a20947763.zip |
FULLPIPE: Fix memory leaks, ownership issues, and endianness issues in graphics code
Diffstat (limited to 'engines/fullpipe/fullpipe.cpp')
-rw-r--r-- | engines/fullpipe/fullpipe.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/fullpipe/fullpipe.cpp b/engines/fullpipe/fullpipe.cpp index ad9b6a42f6..122b68511c 100644 --- a/engines/fullpipe/fullpipe.cpp +++ b/engines/fullpipe/fullpipe.cpp @@ -76,7 +76,6 @@ FullpipeEngine::FullpipeEngine(OSystem *syst, const ADGameDescription *gameDesc) _pictureScale = 8; _scrollSpeed = 0; _currSoundListCount = 0; - _globalPalette = 0; _updateTicks = 0; _lastInputTicks = 0; @@ -290,6 +289,7 @@ Common::Error FullpipeEngine::run() { _console = new Console(this); initialize(); + _globalPalette = &_defaultPalette; _isSaveAllowed = false; @@ -338,6 +338,7 @@ Common::Error FullpipeEngine::run() { freeGameLoader(); _currentScene = 0; _updateTicks = 0; + _globalPalette = &_defaultPalette; loadGam("fullpipe.gam"); _needRestart = false; |