Fix possible crash when GetPlayerInput() is nullptr on startup

This commit is contained in:
Ondrej Hrusovsky authored and GitHub committed 2023-12-13 15:22:20 +01:00
1 parent 18283d4187
commit 10574f9db3
1 file changed
+6
@@ -65,6 +65,12 @@ void FCogInputWindow_Actions::RenderContent()
return; return;
} }
if(EnhancedInputSubsystem->GetPlayerInput() == nullptr)
{
ImGui::Text("No Player Input");
return;
}
if (ImGui::BeginMenuBar()) if (ImGui::BeginMenuBar())
{ {
if (ImGui::BeginMenu("Options")) if (ImGui::BeginMenu("Options"))