diff options
author | Jaromir Wysoglad | 2019-07-22 10:47:06 +0200 |
---|---|---|
committer | Thierry Crozat | 2019-07-28 15:09:14 +0100 |
commit | fc3ae4c9b955f6b7e702993f38c25f61d49b593c (patch) | |
tree | e510c636593f3f932e1ad6316ad9682180fcb68e /engines/supernova/supernova.cpp | |
parent | c2177f84539472defe31c6fba80ad4a6f3357266 (diff) | |
download | scummvm-rg350-fc3ae4c9b955f6b7e702993f38c25f61d49b593c.tar.gz scummvm-rg350-fc3ae4c9b955f6b7e702993f38c25f61d49b593c.tar.bz2 scummvm-rg350-fc3ae4c9b955f6b7e702993f38c25f61d49b593c.zip |
SUPERNOVA: Fix most of Codacy issues
* Fix mismatched delete in create_image.cpp
* Add shebangs to create_ms2_data.***.sh
* Reduce scopes of some variables
* Substitute bitwise and for logical and in
GamaManager2::passageConstruction
Diffstat (limited to 'engines/supernova/supernova.cpp')
-rw-r--r-- | engines/supernova/supernova.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/supernova/supernova.cpp b/engines/supernova/supernova.cpp index 431438eb6d..8a7210720d 100644 --- a/engines/supernova/supernova.cpp +++ b/engines/supernova/supernova.cpp @@ -468,10 +468,9 @@ Common::SeekableReadStream *SupernovaEngine::getBlockFromDatFile(Common::String return nullptr; } - int part; uint32 gameBlockSize; while (!f.eos()) { - part = f.readByte(); + int part = f.readByte(); gameBlockSize = f.readUint32LE(); if (f.eos()){ GUIErrorMessageFormat(_("Unable to find block for part %d"), _MSPart); |