Skip to content
Snippets Groups Projects
Commit df40acab authored by Sebastian Pape's avatar Sebastian Pape
Browse files

Fixing crash in cluster console if not command is given

parent eca10e22
No related branches found
No related tags found
1 merge request!4Adding Calibratio to the RWTH VR Toolkit + Some misc fixes
...@@ -8,7 +8,7 @@ void FClusterConsole::Register() ...@@ -8,7 +8,7 @@ void FClusterConsole::Register()
ClusterConsoleCommand = IConsoleManager::Get().RegisterConsoleCommand(TEXT("ClusterExecute"), TEXT("<Your Command> - Execute commands on every node of the nDisplay cluster by prepending ClusterExecute"), ClusterConsoleCommand = IConsoleManager::Get().RegisterConsoleCommand(TEXT("ClusterExecute"), TEXT("<Your Command> - Execute commands on every node of the nDisplay cluster by prepending ClusterExecute"),
FConsoleCommandWithArgsDelegate::CreateLambda([](const TArray< FString >& Args) FConsoleCommandWithArgsDelegate::CreateLambda([](const TArray< FString >& Args)
{ {
if(IDisplayCluster::Get().GetClusterMgr() == nullptr) return; if(IDisplayCluster::Get().GetClusterMgr() == nullptr || Args.Num() == 0) return;
/* Emitting cluster event */ /* Emitting cluster event */
FDisplayClusterClusterEventJson ClusterEvent; FDisplayClusterClusterEventJson ClusterEvent;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment