Merge pull request #18 from Skylonxe/patch-1

Fix possible crash when GetPlayerInput() is nullptr on startup
This commit is contained in:
Arnaud Jamin
2023-12-13 09:46:36 -05:00
committed by GitHub
@@ -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"))