summaryrefslogtreecommitdiffstats
path: root/logic/InstanceLauncher.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'logic/InstanceLauncher.cpp')
-rw-r--r--logic/InstanceLauncher.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/logic/InstanceLauncher.cpp b/logic/InstanceLauncher.cpp
index 93b87f23..720052a3 100644
--- a/logic/InstanceLauncher.cpp
+++ b/logic/InstanceLauncher.cpp
@@ -61,7 +61,7 @@ int InstanceLauncher::launch()
{
std::cout << "Launching Instance '" << qPrintable ( instId ) << "'" << std::endl;
auto instance = MMC->instances()->getInstanceById(instId);
- if ( instance.isNull() )
+ if ( !instance )
{
std::cout << "Could not find instance requested. note that you have to specify the ID, not the NAME" << std::endl;
return 1;