summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-01-10 01:23:06 +0300
committerAndrei Karas <akaras@inbox.ru>2014-01-10 01:23:06 +0300
commit0b4614a2d3dee49097b8131150df21ef585bf854 (patch)
tree8f3041e81ddd7a5595634b2de8406e1b89da26b8 /src
parentd78965b4c853ede29a0898cbf0c33c3cc3bbdfa3 (diff)
downloadManaVerse-0b4614a2d3dee49097b8131150df21ef585bf854.tar.gz
ManaVerse-0b4614a2d3dee49097b8131150df21ef585bf854.tar.bz2
ManaVerse-0b4614a2d3dee49097b8131150df21ef585bf854.tar.xz
ManaVerse-0b4614a2d3dee49097b8131150df21ef585bf854.zip
fix mods loading from update server patches.
Diffstat (limited to 'src')
-rw-r--r--src/gui/windows/updaterwindow.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/windows/updaterwindow.cpp b/src/gui/windows/updaterwindow.cpp
index dee1d209c..7ecfb0d7d 100644
--- a/src/gui/windows/updaterwindow.cpp
+++ b/src/gui/windows/updaterwindow.cpp
@@ -646,7 +646,10 @@ void UpdaterWindow::loadManaPlusUpdates(const std::string &dir,
for (unsigned int updateIndex = 0, sz = static_cast<unsigned int>(
updateFiles.size()); updateIndex < sz; updateIndex ++)
{
- std::string name = updateFiles[updateIndex].name;
+ const UpdateFile &file = updateFiles[updateIndex];
+ if (!file.group.empty())
+ continue;
+ const std::string name = file.name;
if (strStartWith(name, "manaplus_"))
{
struct stat statbuf;