From 58198a6bfd23455ee8cecbfc8e70d3001a4e5c43 Mon Sep 17 00:00:00 2001 From: Tannin Date: Thu, 27 Aug 2015 20:58:01 +0200 Subject: bugfix: update.bsa sorted incorrectly --- src/mainwindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/mainwindow.cpp') 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())) { -- cgit v1.3.1