summaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authorOrochimarufan <orochimarufan.x3@gmail.com>2013-02-25 22:47:03 +0100
committerOrochimarufan <orochimarufan.x3@gmail.com>2013-03-22 13:56:57 +0100
commitf4c9cb8c1d395422b7e4f1c27ac92b6df08a39bb (patch)
tree595a93410af4ff4e238d27d78b030c595915d4cc /main.cpp
parentf01bf10dc511268ead551a191a6a3211c006ba44 (diff)
downloadMultiMC-f4c9cb8c1d395422b7e4f1c27ac92b6df08a39bb.tar
MultiMC-f4c9cb8c1d395422b7e4f1c27ac92b6df08a39bb.tar.gz
MultiMC-f4c9cb8c1d395422b7e4f1c27ac92b6df08a39bb.tar.lz
MultiMC-f4c9cb8c1d395422b7e4f1c27ac92b6df08a39bb.tar.xz
MultiMC-f4c9cb8c1d395422b7e4f1c27ac92b6df08a39bb.zip
refactor indendation, fix a bug in MinecraftProcess & fix a bug in
InstanceLauncher
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/main.cpp b/main.cpp
index cf193ff0..31d5277e 100644
--- a/main.cpp
+++ b/main.cpp
@@ -66,12 +66,9 @@ private:
{
inst = iter.next();
if (inst->id() == instId)
- break;
+ return inst;
}
- if (inst->id() != instId)
- return InstancePtr();
- else
- return iter.peekPrevious();
+ return InstancePtr();
}
private slots: