From e998c784e0a3943a6a85be4f82c5a1b8f027b838 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 3 Apr 2011 21:41:01 +0300 Subject: Fix update error if file line is empty, like in aethyra updates. --- src/gui/updatewindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 loadTxtFile(const std::string &fileName) thisFile.required = true; thisFile.desc = ""; - files.push_back(thisFile); + if (!thisFile.name.empty()) + files.push_back(thisFile); } } else -- cgit v1.2.3-70-g09d2