diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-04-03 21:41:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-04-03 21:41:01 +0300 |
commit | e998c784e0a3943a6a85be4f82c5a1b8f027b838 (patch) | |
tree | cec1598635df9b6fe050372c67b7bfb0b3a3343b /src/gui | |
parent | 4cc1a068ca16c3aa272e0db267826cd414fbcd0d (diff) | |
download | manaplus-e998c784e0a3943a6a85be4f82c5a1b8f027b838.tar.gz manaplus-e998c784e0a3943a6a85be4f82c5a1b8f027b838.tar.bz2 manaplus-e998c784e0a3943a6a85be4f82c5a1b8f027b838.tar.xz manaplus-e998c784e0a3943a6a85be4f82c5a1b8f027b838.zip |
Fix update error if file line is empty, like in aethyra updates.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/updatewindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/updatewindow.cpp b/src/gui/updatewindow.cpp index 9a2b4d75a..ea8d27013 100644 --- a/src/gui/updatewindow.cpp +++ b/src/gui/updatewindow.cpp @@ -114,7 +114,8 @@ std::vector<updateFile> loadTxtFile(const std::string &fileName) thisFile.required = true; thisFile.desc = ""; - files.push_back(thisFile); + if (!thisFile.name.empty()) + files.push_back(thisFile); } } else |