Browse Source

Fixed Samples crashing when no command line argument was passed

Jorrit Rouwe 3 years ago
parent
commit
195fdd9c78
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Samples/SamplesApp.cpp

+ 5 - 0
Samples/SamplesApp.cpp

@@ -516,6 +516,11 @@ SamplesApp::SamplesApp()
 			StartTest(test);
 			StartTest(test);
 		}
 		}
 	}
 	}
+	else
+	{
+		// Otherwise start default test
+		StartTest(JPH_RTTI(LoadRigTest));
+	}
 }
 }
 
 
 SamplesApp::~SamplesApp()
 SamplesApp::~SamplesApp()