diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-07-07 18:12:09 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-07-07 18:12:39 +0200 |
commit | a23323a01ee2713209619ad99d8859616aa99cdb (patch) | |
tree | 8001e7aa9e2ac41557eac657bc29549c86370c27 /libmultimc/src/gameupdatetask.cpp | |
parent | 8f5516ceb6b897c4e3452d424d55d02023eab270 (diff) | |
download | MultiMC-a23323a01ee2713209619ad99d8859616aa99cdb.tar MultiMC-a23323a01ee2713209619ad99d8859616aa99cdb.tar.gz MultiMC-a23323a01ee2713209619ad99d8859616aa99cdb.tar.lz MultiMC-a23323a01ee2713209619ad99d8859616aa99cdb.tar.xz MultiMC-a23323a01ee2713209619ad99d8859616aa99cdb.zip |
Small tweaks to the assets - delete extra files
Diffstat (limited to 'libmultimc/src/gameupdatetask.cpp')
-rw-r--r-- | libmultimc/src/gameupdatetask.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libmultimc/src/gameupdatetask.cpp b/libmultimc/src/gameupdatetask.cpp index c718ce71..49f9335f 100644 --- a/libmultimc/src/gameupdatetask.cpp +++ b/libmultimc/src/gameupdatetask.cpp @@ -47,7 +47,13 @@ void GameUpdateTask::executeTask() // Get a pointer to the version object that corresponds to the instance's version. MinecraftVersion *targetVersion = (MinecraftVersion *)MinecraftVersionList::getMainList(). findVersion(m_inst->intendedVersion()); - Q_ASSERT_X(targetVersion != NULL, "game update", "instance's intended version is not an actual version"); + if(targetVersion == NULL) + { + //Q_ASSERT_X(targetVersion != NULL, "game update", "instance's intended version is not an actual version"); + setState(StateFinished); + emit gameUpdateComplete(m_response); + return; + } // Make directories QDir binDir(m_inst->binDir()); |