aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb
diff options
context:
space:
mode:
authorNipun Garg2019-07-18 19:10:54 +0530
committerEugene Sandulenko2019-09-03 17:17:23 +0200
commita8d277be183a2d41b9dd10b3b8b23ef1ddb8d65e (patch)
tree695e7f6dfa9e982d00890f70ca676ea6d6331d04 /engines/hdb
parent05cb55b8883fdf4f6a44f285d29716d2d17da9c2 (diff)
downloadscummvm-rg350-a8d277be183a2d41b9dd10b3b8b23ef1ddb8d65e.tar.gz
scummvm-rg350-a8d277be183a2d41b9dd10b3b8b23ef1ddb8d65e.tar.bz2
scummvm-rg350-a8d277be183a2d41b9dd10b3b8b23ef1ddb8d65e.zip
HDB: Fix delete command for _dir
Diffstat (limited to 'engines/hdb')
-rw-r--r--engines/hdb/file-manager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/hdb/file-manager.cpp b/engines/hdb/file-manager.cpp
index d75c1121ad..7e1e68e9ea 100644
--- a/engines/hdb/file-manager.cpp
+++ b/engines/hdb/file-manager.cpp
@@ -29,12 +29,12 @@ namespace HDB {
FileMan::FileMan() {
_mpcFile = new Common::File;
- for (uint i = 0; i < _dir.size(); i++)
- delete _dir[i];
}
FileMan::~FileMan() {
delete _mpcFile;
+ for (uint i = 0; i < _dir.size(); i++)
+ delete _dir[i];
}
bool FileMan::openMPC(const Common::String &filename) {