diff options
author | Strangerke | 2012-11-23 22:21:35 +0100 |
---|---|---|
committer | Strangerke | 2012-11-23 22:21:35 +0100 |
commit | 384ca5dd827c1a62d81a957fbfd3a18ed47a56e0 (patch) | |
tree | e0496ffac438fdacd3c1a1e3ce71807235a3184d /engines/hopkins/files.cpp | |
parent | 9a674ac89cadaf1da9457d9e274cb56a4900da0d (diff) | |
download | scummvm-rg350-384ca5dd827c1a62d81a957fbfd3a18ed47a56e0.tar.gz scummvm-rg350-384ca5dd827c1a62d81a957fbfd3a18ed47a56e0.tar.bz2 scummvm-rg350-384ca5dd827c1a62d81a957fbfd3a18ed47a56e0.zip |
HOPKINS: Fix CppCheck warnings
Diffstat (limited to 'engines/hopkins/files.cpp')
-rw-r--r-- | engines/hopkins/files.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/hopkins/files.cpp b/engines/hopkins/files.cpp index 13e54bb288..a5d193fda7 100644 --- a/engines/hopkins/files.cpp +++ b/engines/hopkins/files.cpp @@ -285,7 +285,7 @@ byte *FileManager::RECHERCHE_CAT(const Common::String &file, int a2) { bool matchFlag = false; int offsetVal = 0; - do { + while (!matchFlag) { Common::String name = (const char *)ptr + offsetVal; if (name == filename) { @@ -302,7 +302,7 @@ byte *FileManager::RECHERCHE_CAT(const Common::String &file, int a2) { } offsetVal += 23; - } while (!matchFlag); + } _vm->_globals.dos_free2(ptr); |