Fix missed version file assignment.

This commit is contained in:
Petr Mrázek 2014-03-03 09:08:32 +01:00
parent d66f2500a6
commit 011ea84530
2 changed files with 3 additions and 4 deletions

View File

@ -90,8 +90,7 @@ void OneSixVersionBuilder::buildInternal(const bool onlyVanilla, const QStringLi
{
// version.json
QLOG_INFO() << "Reading version.json";
VersionFile file;
parseJsonFile(QFileInfo(root.absoluteFilePath("version.json")), false, &file);
VersionFile file = parseJsonFile(QFileInfo(root.absoluteFilePath("version.json")), false);
file.name = "Minecraft";
file.fileId = "org.multimc.version.json";
file.version = m_instance->intendedVersionId();
@ -124,7 +123,7 @@ void OneSixVersionBuilder::buildInternal(const bool onlyVanilla, const QStringLi
for (auto order : files.keys())
{
QLOG_DEBUG() << "Applying file with order" << order;
auto filePair = files[order];
auto & filePair = files[order];
filePair.second.applyTo(m_version);
}
} while(0);

View File

@ -64,7 +64,7 @@ public: /* methods */
void applyTo(VersionFinal *version);
public: /* data */
int order;
int order = 0;
QString name;
QString fileId;
QString version;