Skip to content
Snippets Groups Projects
Commit 6191037a authored by Timon Römer's avatar Timon Römer
Browse files

Removes closing in case of missing InputComponent

parent a38bda7d
No related branches found
No related tags found
1 merge request!88Merges IntenSelect 5.3 into dev 5.3
Pipeline #399759 failed
......@@ -59,14 +59,13 @@ void UIntenSelectComponent::InitInputBindings()
// Check if the enhanced input component is valid
if (!PEI)
{
// Display an error message and quit the game if the enhanced input component is not found
// Display an error message and deactivate if the enhanced input component is not found
const FString Message = "Could not get PlayerInputComponent for IntenSelect Input Assignment!";
#if WITH_EDITOR
const FText Title = FText::FromString(FString("ERROR"));
FMessageDialog::Open(EAppMsgType::Ok, FText::FromString(Message), Title);
#endif
UE_LOG(LogTemp, Error, TEXT("%s"), *Message)
UKismetSystemLibrary::QuitGame(this, nullptr, EQuitPreference::Quit, false);
UE_LOG(LogTemp, Error, TEXT("%s"), *Message);
//Deactivate
Super::SetActive(false, true);
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment