diff options
author | Torbjörn Andersson | 2013-03-30 13:17:27 +0100 |
---|---|---|
committer | Torbjörn Andersson | 2013-03-30 13:17:27 +0100 |
commit | 04259f7be4113f28c8b541d3100dbd81488c02fa (patch) | |
tree | 633ac8f7f85bb4a1beb2fc2926e705505074a5d1 /engines/hopkins | |
parent | 5539323e16ec10f8f72dcec0d9c25588c2ef986b (diff) | |
download | scummvm-rg350-04259f7be4113f28c8b541d3100dbd81488c02fa.tar.gz scummvm-rg350-04259f7be4113f28c8b541d3100dbd81488c02fa.tar.bz2 scummvm-rg350-04259f7be4113f28c8b541d3100dbd81488c02fa.zip |
HOPKINS: Slight cleanup to silence cppcheck warning.
Diffstat (limited to 'engines/hopkins')
-rw-r--r-- | engines/hopkins/anim.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/hopkins/anim.cpp b/engines/hopkins/anim.cpp index 458e8d25f3..e907b30231 100644 --- a/engines/hopkins/anim.cpp +++ b/engines/hopkins/anim.cpp @@ -56,7 +56,6 @@ void AnimationManager::clearAll() { * @param rate3 Delay amount after animation finishes */ void AnimationManager::playAnim(const Common::String &filename, uint32 rate1, uint32 rate2, uint32 rate3, bool skipSeqFl) { - byte *screenCopy = NULL; Common::File f; if (_vm->shouldQuit()) @@ -172,7 +171,7 @@ void AnimationManager::playAnim(const Common::String &filename, uint32 rate1, ui } if (_vm->_graphicsManager->_fadingFl) { - screenCopy = _vm->_globals->allocMemory(307200); + byte *screenCopy = _vm->_globals->allocMemory(307200); f.seek(6); f.read(_vm->_graphicsManager->_palette, 800); @@ -197,7 +196,7 @@ void AnimationManager::playAnim(const Common::String &filename, uint32 rate1, ui _vm->_graphicsManager->copyWinscanVbe3(screenP, screenCopy); } _vm->_graphicsManager->fadeOutDefaultLength(screenCopy); - screenCopy = _vm->_globals->freeMemory(screenCopy); + _vm->_globals->freeMemory(screenCopy); } _vm->_graphicsManager->_fadingFl = false; |