diff options
author | Peter Kohaut | 2018-02-01 20:40:49 +0100 |
---|---|---|
committer | Peter Kohaut | 2018-02-01 21:38:30 +0100 |
commit | 7f53a0cd31f07cdcc9610b3c6972002e296ff0ee (patch) | |
tree | d01c2b034c231fd452ac18d95edad6e733c75581 /engines/bladerunner/ui/spinner.cpp | |
parent | 2e74fd8f224428a368cb3301c12e613d3111d424 (diff) | |
download | scummvm-rg350-7f53a0cd31f07cdcc9610b3c6972002e296ff0ee.tar.gz scummvm-rg350-7f53a0cd31f07cdcc9610b3c6972002e296ff0ee.tar.bz2 scummvm-rg350-7f53a0cd31f07cdcc9610b3c6972002e296ff0ee.zip |
BLADERUNNER: Fixed few Coverity issues
Diffstat (limited to 'engines/bladerunner/ui/spinner.cpp')
-rw-r--r-- | engines/bladerunner/ui/spinner.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/engines/bladerunner/ui/spinner.cpp b/engines/bladerunner/ui/spinner.cpp index cc913e3a9c..72c8b19070 100644 --- a/engines/bladerunner/ui/spinner.cpp +++ b/engines/bladerunner/ui/spinner.cpp @@ -99,8 +99,6 @@ int Spinner::chooseDestination(int loopId, bool immediately) { int shapeCount = 0; int spinnerLoopId = 4; - mapmask = 1; - if (mapmask & 4) { _destinations = getDestinationsFar(); firstShapeId = 26; @@ -168,11 +166,9 @@ int Spinner::chooseDestination(int loopId, bool immediately) { } _shapes.clear(); - if (_vqaPlayer != nullptr) { - _vqaPlayer->close(); - delete _vqaPlayer; - _vqaPlayer = nullptr; - } + _vqaPlayer->close(); + delete _vqaPlayer; + _vqaPlayer = nullptr; _vm->closeArchive("MODE.MIX"); |