diff options
| author | Tannin <devnull@localhost> | 2015-08-27 20:58:01 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2015-08-27 20:58:01 +0200 |
| commit | 58198a6bfd23455ee8cecbfc8e70d3001a4e5c43 (patch) | |
| tree | dba62f640cedcd4130844d09ede254333208e8e9 /src | |
| parent | dd875c05de81a3f96d8942fa57dcdaf593f71a06 (diff) | |
bugfix: update.bsa sorted incorrectly
Diffstat (limited to 'src')
| -rw-r--r-- | src/mainwindow.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index f0f944a8..3d6c6ef2 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1340,9 +1340,11 @@ void MainWindow::updateBSAList(const QStringList &defaultArchives, const QString QFileInfo fileInfo(ToQString(current->getName().c_str()));
if (fileInfo.suffix().toLower() == "bsa") {
- int index = activeArchives.indexOf(fileInfo.fileName()) + 2;
+ int index = activeArchives.indexOf(fileInfo.fileName());
if (index == -1) {
index = 0xFFFF;
+ } else {
+ index += 2;
}
if ((invalidation != nullptr) && invalidation->isInvalidationBSA(fileInfo.fileName())) {
|
