aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--api/logic/mojang/PackageManifest.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/api/logic/mojang/PackageManifest.h b/api/logic/mojang/PackageManifest.h
index 893d4c50..d01a0554 100644
--- a/api/logic/mojang/PackageManifest.h
+++ b/api/logic/mojang/PackageManifest.h
@@ -87,7 +87,11 @@ public:
private:
Path(const parts_type::const_iterator & start, const parts_type::const_iterator & end) {
- parts = QStringList(start, end);
+ auto cursor = start;
+ while(cursor != end) {
+ parts.push_back(*cursor);
+ cursor++;
+ }
}
int compare(const Path& p) const;