From d7efeb94f91b777f50e47dc6b012a6609a8fefbd Mon Sep 17 00:00:00 2001 From: Phenom Date: Fri, 13 May 2016 17:06:00 +0200 Subject: [PATCH] Move nDir->Files into condition nDir exists. Thanks AC. --- libretroshare/src/dbase/findex.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretroshare/src/dbase/findex.cc b/libretroshare/src/dbase/findex.cc index 8da2afd48..17b5dba0b 100644 --- a/libretroshare/src/dbase/findex.cc +++ b/libretroshare/src/dbase/findex.cc @@ -963,8 +963,8 @@ int FileIndex::loadIndex(const std::string& filename, const RsFileHash& expected nfile->parent = ndir; if (ndir) { nfile->row = ndir->subdirs.size() + ndir->files.size(); + ndir->files[nfile->name] = nfile; } - ndir->files[nfile->name] = nfile; } /* create new dir and add to stack */