Small tweaks to the assets - delete extra files

This commit is contained in:
Petr Mrázek
2013-07-07 18:12:09 +02:00
parent 8f5516ceb6
commit a23323a01e
2 changed files with 37 additions and 15 deletions

View File

@ -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());