Fix pre-existing UE 5.7 compilation errors
- Add missing Engine/World.h include to HyperTwistClassicCubeActor.cpp - Replace NewObject<T>(GetTransientPackage()) with NewObject<T>() in 39 test files (UE 5.7 changed GetTransientPackage() return type from UObject* to UPackage*)
This commit is contained in:
parent
88dbee1fa3
commit
bdf0952902
40 changed files with 48 additions and 47 deletions
|
|
@ -1,4 +1,5 @@
|
|||
#include "HyperTwistSimulation/HyperTwistClassicCubeActor.h"
|
||||
#include "Engine/World.h"
|
||||
|
||||
AHyperTwistClassicCubeActor::AHyperTwistClassicCubeActor()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ namespace HyperTwistClassicCubePhase6RRTestInternal
|
|||
|
||||
UHyperTwistTrainingSubsystem* MakeRecognitionSubsystem(const FString& SessionId)
|
||||
{
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>(GetTransientPackage());
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>();
|
||||
if (GameInstance == nullptr)
|
||||
{
|
||||
return nullptr;
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ namespace HyperTwistClassicCubePhase6RSTestInternal
|
|||
|
||||
UHyperTwistTrainingSubsystem* MakeRecognitionSubsystem(const FString& SessionId)
|
||||
{
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>(GetTransientPackage());
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>();
|
||||
if (GameInstance == nullptr)
|
||||
{
|
||||
return nullptr;
|
||||
|
|
|
|||
|
|
@ -12,12 +12,12 @@ namespace HyperTwistCoquiPhase6RARTestInternal
|
|||
{
|
||||
UHyperTwistMockVoiceClient* MakeMockVoiceClient()
|
||||
{
|
||||
return NewObject<UHyperTwistMockVoiceClient>(GetTransientPackage());
|
||||
return NewObject<UHyperTwistMockVoiceClient>();
|
||||
}
|
||||
|
||||
UHyperTwistHttpVoiceClient* MakeHttpVoiceClient()
|
||||
{
|
||||
return NewObject<UHyperTwistHttpVoiceClient>(GetTransientPackage());
|
||||
return NewObject<UHyperTwistHttpVoiceClient>();
|
||||
}
|
||||
|
||||
const FHyperTwistVoiceModelReviewDescriptor* FindReviewById(
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ namespace HyperTwistCoquiPhase6RHTestInternal
|
|||
{
|
||||
UHyperTwistMockVoiceClient* MakeMockVoiceClient()
|
||||
{
|
||||
return NewObject<UHyperTwistMockVoiceClient>(GetTransientPackage());
|
||||
return NewObject<UHyperTwistMockVoiceClient>();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ IMPLEMENT_SIMPLE_AUTOMATION_TEST(
|
|||
|
||||
bool FHyperTwistCubeDeskBound1DrillTimerCouplingTest::RunTest(const FString& Parameters)
|
||||
{
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>(GetTransientPackage());
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>();
|
||||
TestNotNull(TEXT("Game instance outer must be created for subsystem construction."), GameInstance);
|
||||
if (GameInstance == nullptr)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@ IMPLEMENT_SIMPLE_AUTOMATION_TEST(
|
|||
|
||||
bool FHyperTwistCubeDeskBound3FixtureIngestionTest::RunTest(const FString& Parameters)
|
||||
{
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>(GetTransientPackage());
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>();
|
||||
TestNotNull(TEXT("Game instance must exist for the smart-device subsystem test."), GameInstance);
|
||||
if (GameInstance == nullptr)
|
||||
{
|
||||
|
|
@ -332,7 +332,7 @@ IMPLEMENT_SIMPLE_AUTOMATION_TEST(
|
|||
|
||||
bool FHyperTwistCubeDeskBound3DeviceSessionLifecycleTest::RunTest(const FString& Parameters)
|
||||
{
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>(GetTransientPackage());
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>();
|
||||
TestNotNull(TEXT("Game instance must exist for the device-session lifecycle test."), GameInstance);
|
||||
if (GameInstance == nullptr)
|
||||
{
|
||||
|
|
@ -444,7 +444,7 @@ IMPLEMENT_SIMPLE_AUTOMATION_TEST(
|
|||
|
||||
bool FHyperTwistCubeDeskBound3RepositoryDedupeTest::RunTest(const FString& Parameters)
|
||||
{
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>(GetTransientPackage());
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>();
|
||||
TestNotNull(TEXT("Game instance must exist for the repository dedupe test."), GameInstance);
|
||||
if (GameInstance == nullptr)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -422,7 +422,7 @@ IMPLEMENT_SIMPLE_AUTOMATION_TEST(
|
|||
|
||||
bool FHyperTwistCubeDeskBound5ComparisonProjectionTest::RunTest(const FString& Parameters)
|
||||
{
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>(GetTransientPackage());
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>();
|
||||
TestNotNull(TEXT("A game instance must exist for the Bound 5 subsystem test."), GameInstance);
|
||||
if (GameInstance == nullptr)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ namespace HyperTwistFasterWhisperPhase6RAPTestInternal
|
|||
|
||||
UHyperTwistTrainingSubsystem* MakeSpeechSubsystem(const FString& SessionId)
|
||||
{
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>(GetTransientPackage());
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>();
|
||||
if (GameInstance == nullptr)
|
||||
{
|
||||
return nullptr;
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ namespace HyperTwistFasterWhisperPhase6RFTestInternal
|
|||
|
||||
UHyperTwistTrainingSubsystem* MakeSpeechSubsystem(const FString& SessionId)
|
||||
{
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>(GetTransientPackage());
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>();
|
||||
if (GameInstance == nullptr)
|
||||
{
|
||||
return nullptr;
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ namespace HyperTwistHandyPhase6RAJTestInternal
|
|||
|
||||
UHyperTwistTrainingSubsystem* MakeSpeechSubsystem(const FString& SessionId)
|
||||
{
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>(GetTransientPackage());
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>();
|
||||
if (GameInstance == nullptr)
|
||||
{
|
||||
return nullptr;
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ namespace HyperTwistHandyPhase6RAOTestInternal
|
|||
|
||||
UHyperTwistTrainingSubsystem* MakeSpeechSubsystem(const FString& SessionId)
|
||||
{
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>(GetTransientPackage());
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>();
|
||||
if (GameInstance == nullptr)
|
||||
{
|
||||
return nullptr;
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ namespace HyperTwistHandyPhase6RAUTestInternal
|
|||
|
||||
UHyperTwistTrainingSubsystem* MakeSpeechSubsystem(const FString& SessionId)
|
||||
{
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>(GetTransientPackage());
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>();
|
||||
if (GameInstance == nullptr)
|
||||
{
|
||||
return nullptr;
|
||||
|
|
|
|||
|
|
@ -11,12 +11,12 @@ namespace HyperTwistPiperPhase6RAQTestInternal
|
|||
{
|
||||
UHyperTwistMockVoiceClient* MakeMockVoiceClient()
|
||||
{
|
||||
return NewObject<UHyperTwistMockVoiceClient>(GetTransientPackage());
|
||||
return NewObject<UHyperTwistMockVoiceClient>();
|
||||
}
|
||||
|
||||
UHyperTwistHttpVoiceClient* MakeHttpVoiceClient()
|
||||
{
|
||||
return NewObject<UHyperTwistHttpVoiceClient>(GetTransientPackage());
|
||||
return NewObject<UHyperTwistHttpVoiceClient>();
|
||||
}
|
||||
|
||||
const FHyperTwistVoiceProfileSummary* FindProfileById(
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ namespace HyperTwistPiperPhase6RGTestInternal
|
|||
{
|
||||
UHyperTwistMockVoiceClient* MakeMockVoiceClient()
|
||||
{
|
||||
return NewObject<UHyperTwistMockVoiceClient>(GetTransientPackage());
|
||||
return NewObject<UHyperTwistMockVoiceClient>();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ namespace HyperTwistQbrPhase6RAKTestInternal
|
|||
|
||||
UHyperTwistTrainingSubsystem* MakeRecognitionSubsystem(const FString& SessionId)
|
||||
{
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>(GetTransientPackage());
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>();
|
||||
if (GameInstance == nullptr)
|
||||
{
|
||||
return nullptr;
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ namespace HyperTwistQbrPhase6RANTestInternal
|
|||
|
||||
UHyperTwistTrainingSubsystem* MakeRecognitionSubsystem(const FString& SessionId)
|
||||
{
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>(GetTransientPackage());
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>();
|
||||
if (GameInstance == nullptr)
|
||||
{
|
||||
return nullptr;
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ namespace HyperTwistQbrPhase6RASTestInternal
|
|||
|
||||
UHyperTwistTrainingSubsystem* MakeRecognitionSubsystem(const FString& SessionId)
|
||||
{
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>(GetTransientPackage());
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>();
|
||||
if (GameInstance == nullptr)
|
||||
{
|
||||
return nullptr;
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ IMPLEMENT_SIMPLE_AUTOMATION_TEST(
|
|||
|
||||
bool FHyperTwistQbrPhase6RBCalibrationSessionConfigTest::RunTest(const FString& Parameters)
|
||||
{
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>(GetTransientPackage());
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>();
|
||||
TestNotNull(TEXT("Game instance outer must exist for subsystem construction."), GameInstance);
|
||||
if (GameInstance == nullptr)
|
||||
{
|
||||
|
|
@ -127,7 +127,7 @@ IMPLEMENT_SIMPLE_AUTOMATION_TEST(
|
|||
|
||||
bool FHyperTwistQbrPhase6RBPreviewObservationTest::RunTest(const FString& Parameters)
|
||||
{
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>(GetTransientPackage());
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>();
|
||||
TestNotNull(TEXT("Game instance outer must exist for subsystem construction."), GameInstance);
|
||||
if (GameInstance == nullptr)
|
||||
{
|
||||
|
|
@ -187,7 +187,7 @@ IMPLEMENT_SIMPLE_AUTOMATION_TEST(
|
|||
|
||||
bool FHyperTwistQbrPhase6RBCommitObservationTest::RunTest(const FString& Parameters)
|
||||
{
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>(GetTransientPackage());
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>();
|
||||
TestNotNull(TEXT("Game instance outer must exist for subsystem construction."), GameInstance);
|
||||
if (GameInstance == nullptr)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ IMPLEMENT_SIMPLE_AUTOMATION_TEST(
|
|||
|
||||
bool FHyperTwistQbrPhase6ROWebcamShellSessionConfigTest::RunTest(const FString& Parameters)
|
||||
{
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>(GetTransientPackage());
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>();
|
||||
TestNotNull(TEXT("Game instance outer must exist for subsystem construction."), GameInstance);
|
||||
if (GameInstance == nullptr)
|
||||
{
|
||||
|
|
@ -194,7 +194,7 @@ IMPLEMENT_SIMPLE_AUTOMATION_TEST(
|
|||
|
||||
bool FHyperTwistQbrPhase6ROWebcamShellPreviewStateTest::RunTest(const FString& Parameters)
|
||||
{
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>(GetTransientPackage());
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>();
|
||||
TestNotNull(TEXT("Game instance outer must exist for subsystem construction."), GameInstance);
|
||||
if (GameInstance == nullptr)
|
||||
{
|
||||
|
|
@ -249,7 +249,7 @@ IMPLEMENT_SIMPLE_AUTOMATION_TEST(
|
|||
|
||||
bool FHyperTwistQbrPhase6ROWebcamShellCommitStateTest::RunTest(const FString& Parameters)
|
||||
{
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>(GetTransientPackage());
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>();
|
||||
TestNotNull(TEXT("Game instance outer must exist for subsystem construction."), GameInstance);
|
||||
if (GameInstance == nullptr)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ namespace HyperTwistRubixCubeSolverPhase6RATTestInternal
|
|||
|
||||
UHyperTwistTrainingSubsystem* MakeRecognitionSubsystem(const FString& SessionId)
|
||||
{
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>(GetTransientPackage());
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>();
|
||||
if (GameInstance == nullptr)
|
||||
{
|
||||
return nullptr;
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ namespace HyperTwistRubixCubeSolverPhase6RCTestInternal
|
|||
|
||||
UHyperTwistTrainingSubsystem* MakeRecognitionSubsystem(const FString& SessionId)
|
||||
{
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>(GetTransientPackage());
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>();
|
||||
if (GameInstance == nullptr)
|
||||
{
|
||||
return nullptr;
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ namespace HyperTwistRubixCubeSolverPhase6RPTestInternal
|
|||
|
||||
UHyperTwistTrainingSubsystem* MakeRecognitionSubsystem(const FString& SessionId)
|
||||
{
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>(GetTransientPackage());
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>();
|
||||
if (GameInstance == nullptr)
|
||||
{
|
||||
return nullptr;
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ namespace HyperTwistRubixCubeSolverPhase6RQTestInternal
|
|||
|
||||
UHyperTwistTrainingSubsystem* MakeRecognitionSubsystem(const FString& SessionId)
|
||||
{
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>(GetTransientPackage());
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>();
|
||||
if (GameInstance == nullptr)
|
||||
{
|
||||
return nullptr;
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ namespace HyperTwistWhisperCppPhase6RAATestInternal
|
|||
|
||||
UHyperTwistTrainingSubsystem* MakeSpeechSubsystem(const FString& SessionId, const FString& ClientKind)
|
||||
{
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>(GetTransientPackage());
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>();
|
||||
if (GameInstance == nullptr)
|
||||
{
|
||||
return nullptr;
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ namespace HyperTwistWhisperCppPhase6RABTestInternal
|
|||
|
||||
UHyperTwistTrainingSubsystem* MakeSpeechSubsystem(const FString& SessionId, const FString& ClientKind)
|
||||
{
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>(GetTransientPackage());
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>();
|
||||
if (GameInstance == nullptr)
|
||||
{
|
||||
return nullptr;
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ namespace HyperTwistWhisperCppPhase6RACTestInternal
|
|||
|
||||
UHyperTwistTrainingSubsystem* MakeSpeechSubsystem(const FString& SessionId, const FString& ClientKind)
|
||||
{
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>(GetTransientPackage());
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>();
|
||||
if (GameInstance == nullptr)
|
||||
{
|
||||
return nullptr;
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ namespace HyperTwistWhisperCppPhase6RADTestInternal
|
|||
|
||||
UHyperTwistTrainingSubsystem* MakeSpeechSubsystem(const FString& SessionId, const FString& ClientKind)
|
||||
{
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>(GetTransientPackage());
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>();
|
||||
if (GameInstance == nullptr)
|
||||
{
|
||||
return nullptr;
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ namespace HyperTwistWhisperCppPhase6RAETestInternal
|
|||
|
||||
UHyperTwistTrainingSubsystem* MakeSpeechSubsystem(const FString& SessionId, const FString& ClientKind)
|
||||
{
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>(GetTransientPackage());
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>();
|
||||
if (GameInstance == nullptr)
|
||||
{
|
||||
return nullptr;
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ namespace HyperTwistWhisperCppPhase6RAFTestInternal
|
|||
|
||||
UHyperTwistTrainingSubsystem* MakeSpeechSubsystem(const FString& SessionId, const FString& ClientKind)
|
||||
{
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>(GetTransientPackage());
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>();
|
||||
if (GameInstance == nullptr)
|
||||
{
|
||||
return nullptr;
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ namespace HyperTwistWhisperCppPhase6RAGTestInternal
|
|||
|
||||
UHyperTwistTrainingSubsystem* MakeSpeechSubsystem(const FString& SessionId, const FString& ClientKind)
|
||||
{
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>(GetTransientPackage());
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>();
|
||||
if (GameInstance == nullptr)
|
||||
{
|
||||
return nullptr;
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ namespace HyperTwistWhisperCppPhase6RAHTestInternal
|
|||
|
||||
UHyperTwistTrainingSubsystem* MakeSpeechSubsystem(const FString& SessionId, const FString& ClientKind)
|
||||
{
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>(GetTransientPackage());
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>();
|
||||
if (GameInstance == nullptr)
|
||||
{
|
||||
return nullptr;
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ namespace HyperTwistWhisperCppPhase6RAITestInternal
|
|||
|
||||
UHyperTwistTrainingSubsystem* MakeSpeechSubsystem(const FString& SessionId)
|
||||
{
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>(GetTransientPackage());
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>();
|
||||
if (GameInstance == nullptr)
|
||||
{
|
||||
return nullptr;
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ namespace HyperTwistWhisperCppPhase6RETestInternal
|
|||
|
||||
UHyperTwistTrainingSubsystem* MakeSpeechSubsystem(const FString& SessionId)
|
||||
{
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>(GetTransientPackage());
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>();
|
||||
if (GameInstance == nullptr)
|
||||
{
|
||||
return nullptr;
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ namespace HyperTwistWhisperCppPhase6RUTestInternal
|
|||
|
||||
UHyperTwistTrainingSubsystem* MakeSpeechSubsystem(const FString& SessionId)
|
||||
{
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>(GetTransientPackage());
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>();
|
||||
if (GameInstance == nullptr)
|
||||
{
|
||||
return nullptr;
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ namespace HyperTwistWhisperCppPhase6RVTestInternal
|
|||
|
||||
UHyperTwistTrainingSubsystem* MakeSpeechSubsystem(const FString& SessionId, const FString& ClientKind)
|
||||
{
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>(GetTransientPackage());
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>();
|
||||
if (GameInstance == nullptr)
|
||||
{
|
||||
return nullptr;
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ namespace HyperTwistWhisperCppPhase6RWTestInternal
|
|||
|
||||
UHyperTwistTrainingSubsystem* MakeSpeechSubsystem(const FString& SessionId, const FString& ClientKind)
|
||||
{
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>(GetTransientPackage());
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>();
|
||||
if (GameInstance == nullptr)
|
||||
{
|
||||
return nullptr;
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ namespace HyperTwistWhisperCppPhase6RXTestInternal
|
|||
|
||||
UHyperTwistTrainingSubsystem* MakeSpeechSubsystem(const FString& SessionId, const FString& ClientKind)
|
||||
{
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>(GetTransientPackage());
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>();
|
||||
if (GameInstance == nullptr)
|
||||
{
|
||||
return nullptr;
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ namespace HyperTwistWhisperCppPhase6RYTestInternal
|
|||
|
||||
UHyperTwistTrainingSubsystem* MakeSpeechSubsystem(const FString& SessionId, const FString& ClientKind)
|
||||
{
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>(GetTransientPackage());
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>();
|
||||
if (GameInstance == nullptr)
|
||||
{
|
||||
return nullptr;
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ namespace HyperTwistWhisperCppPhase6RZTestInternal
|
|||
|
||||
UHyperTwistTrainingSubsystem* MakeSpeechSubsystem(const FString& SessionId, const FString& ClientKind)
|
||||
{
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>(GetTransientPackage());
|
||||
UGameInstance* GameInstance = NewObject<UGameInstance>();
|
||||
if (GameInstance == nullptr)
|
||||
{
|
||||
return nullptr;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue